PTCountCreate
@interface PTCountCreate
: PTStickyNoteCreate <PTSavedCountGroupsViewControllerDelegate>
Handles the creation and editing of count annotations.
-
Initializes a newly created
PTCountCreate
instance.Declaration
Objective-C
- (nonnull instancetype)initWithPDFViewCtrl: (nonnull PTPDFViewCtrl *)pdfViewCtrl;
Swift
init(pdfViewCtrl: PTPDFViewCtrl)
Return Value
an initialized
PTCountCreate
instance -
An object that conforms to the
PTCountCreateDelegate
protocol.Declaration
Objective-C
@property (nonatomic, weak, nullable) id<PTCountCreateDelegate> delegate;
Swift
weak var delegate: (any PTCountCreateDelegate)? { get set }
-
Whether a new group should be created.
YES
if there is no saved group.No
if there is saved group. The default value of this property isYES
.Declaration
Objective-C
@property (nonatomic) BOOL shouldCreateNewGroup;
Swift
var shouldCreateNewGroup: Bool { get set }
-
The color of the selected group.
Declaration
Objective-C
@property (nonatomic, strong, nullable) UIColor *pickedGroupColor;
Swift
var pickedGroupColor: UIColor? { get set }
-
The name of the selected group.
Declaration
Objective-C
@property (nonatomic, strong, nullable) NSString *pickedGroupName;
Swift
var pickedGroupName: String? { get set }
-
Show saved groups.
Declaration
Objective-C
- (void)showCountGroupList;
Swift
func showCountGroupList()
-
Show saved groups as a popover view.
Declaration
Objective-C
- (void)showCountGroupList:(nonnull UIView *)view onSourceView:(nonnull UIView *)sourceView;
Swift
func showCountGroupList(_ view: UIView, onSourceView sourceView: UIView)