PTCountPopupViewController
@interface PTCountPopupViewController
: UIViewController <PTColorPickerViewControllerDelegate>
The PTCountPopupViewController displays the textField and color picker for users to edit the group name and color of count annotations.
-
Initializes a newly created
PTCountPopupViewControllerinstance.Declaration
Objective-C
- (nonnull instancetype)initForEditing:(BOOL)editing withGroupLabel:(nonnull NSString *)groupLabel withColor:(nonnull UIColor *)color;Swift
init(forEditing editing: Bool, withGroupLabel groupLabel: String, with color: UIColor)Parameters
editingWhether the
PTCountPopupViewControlleris for editing an existing group or not.groupLabelThe name of the exisiting group.
colorThe selected color of the existing group.
Return Value
an initialized
PTCountPopupViewControllerinstance. -
The block to execute after pressing done button.
Declaration
Objective-C
@property (nonatomic, copy, nullable) void (^)(void) doneAction;Swift
var doneAction: (() -> Void)? { get set } -
Textfield to input the group name.
Declaration
Objective-C
@property (nonatomic, strong) UITextField *_Nonnull textField;Swift
var textField: UITextField { get set } -
The color selected by the color picker.
Declaration
Objective-C
@property (nonatomic, strong) UIColor *_Nonnull selectedColor;Swift
var selectedColor: UIColor { get set }
PTCountPopupViewController Class Reference