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 PTCountPopupViewController instance.

    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

    editing

    Whether the PTCountPopupViewController is for editing an existing group or not.

    groupLabel

    The name of the exisiting group.

    color

    The selected color of the existing group.

    Return Value

    an initialized PTCountPopupViewController instance.

  • 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 }