PTAnnotStyleViewController


@interface PTAnnotStyleViewController
    : UIViewController <PTOverridable, PTAnnotStyleDelegate>

The AnnotStyleViewController displays a list of controls for adjusting the appearance and properties of an annotation or annotation type. The available controls are determined based on the type of annotation provided.

  • Returns a new instance of an AnnotStyleViewController.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithAnnotStyle:(nonnull PTAnnotStyle *)annotStyle;

    Swift

    init(annotStyle: PTAnnotStyle)

    Parameters

    annotStyle

    An instance of PTAnnotStyle initialized with an annotation or annotation type.

  • Returns a new instance of an AnnotStyleViewController.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithToolManager:(nonnull PTToolManager *)toolManager
                                     annotStyle:(nonnull PTAnnotStyle *)annotStyle;

    Swift

    convenience init(toolManager: PTToolManager, annotStyle: PTAnnotStyle)

    Parameters

    toolManager

    An instance of PTToolManager.

    annotStyle

    An instance of PTAnnotStyle initialized with an annotation or annotation type.

  • An object that manages and stores the current colors and properties for an annotation.

    Declaration

    Objective-C

    @property (nonatomic, strong, readwrite) PTAnnotStyle *_Nonnull annotStyle;

    Swift

    var annotStyle: PTAnnotStyle { get set }
  • An object that conforms to the PTAnnotStyleViewControllerDelegate protocol.

    Declaration

    Objective-C

    @property (nonatomic, weak, readwrite, nullable)
        id<PTAnnotStyleViewControllerDelegate>
            delegate;

    Swift

    weak var delegate: PTAnnotStyleViewControllerDelegate? { get set }
  • The configuration that will be used for the font picker.

    Declaration

    Objective-C

    @property (nonatomic, strong, readwrite, nullable)
        UIFontPickerViewControllerConfiguration *fontPickerConfiguration;

    Swift

    var fontPickerConfiguration: UIFontPickerViewController.Configuration? { get set }
  • Request the AnnotStyleViewController to call its delegate’s annotStyleViewController:didCommitStyle method.

    Declaration

    Objective-C

    - (void)selectStyle;

    Swift

    func selectStyle()