PSPDFAnnotationStyleViewController


@interface PSPDFAnnotationStyleViewController
    : PSPDFStaticTableViewController <PSPDFFontPickerViewControllerDelegate,
                                      PSPDFStyleable>

An inspector that allows users to view and change the properties of annotations. @note: The inspector currently only supports setting one annotation, but since long-term we want multi-select-change, the API has already been prepared for.

  • List of supported inspector properties for various annotation types Dictionary in format annotation type string : array of arrays of property strings (NSArray<NSArray<PSPDFAnnotationString> *> *) OR a block that returns this and takes annotations as argument (NSArray<NSArray<PSPDFAnnotationString> *> *(^block)(PSPDFAnnotation *annotation)). Defaults to an empty dictionary. Normally set to the values from PSPDFConfiguration after initialization.

    Declaration

    Objective-C

    @property (readwrite, copy, nonatomic)
        NSDictionary<PSPDFAnnotationString, id> *_Nonnull propertiesForAnnotations;

    Swift

    var propertiesForAnnotations: [PSPDFAnnotationString : Any] { get set }
  • Shows a custom cell with configurable color presets for the provided annotation types. Defaults to PSPDFAnnotationTypeAll. Normally set to the values from PSPDFConfiguration after initialization.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic)
        PSPDFAnnotationType typesShowingColorPresets;

    Swift

    var typesShowingColorPresets: PSPDFAnnotationType { get set }
  • Saves changes to the color presets. Defaults to YES.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) BOOL persistsColorPresetChanges;

    Swift

    var persistsColorPresetChanges: Bool { get set }