PSPDFBookmarkViewController

Show list of bookmarks for the current document and allows editing/reordering of the bookmarks.

  • Whether the user can long press to copy the title. Defaults to true.

    Declaration

    Objective-C

    @property (nonatomic) BOOL allowCopy;

    Swift

    var allowCopy: Bool { get set }
  • Whether the user can edit the list. Defaults to true.

    Declaration

    Objective-C

    @property (nonatomic) BOOL allowEditing;

    Swift

    var allowEditing: Bool { get set }
  • Whether the bookmark name should automatically become editable after adding a new bookmark. Defaults to true.

    Declaration

    Objective-C

    @property (nonatomic) BOOL shouldStartEditingBookmarkNameWhenAdding;

    Swift

    var shouldStartEditingBookmarkNameWhenAdding: Bool { get set }
  • Defines whether it is possible to add multiple bookmarks on the same page. Defaults to NO.

    This property will automatically be set to the value of PSPDFConfiguration.allowMultipleBookmarksPerPage if the bookmark controller is created and presented by PDFViewController.

    Declaration

    Objective-C

    @property (nonatomic) BOOL allowMultipleBookmarksPerPage;

    Swift

    var allowMultipleBookmarksPerPage: Bool { get set }
  • Control the sort order. Reordering is only allowed for PSPDFBookmarkManagerSortOrderCustom.

    Declaration

    Objective-C

    @property (nonatomic) PSPDFBookmarkManagerSortOrder sortOrder;

    Swift

    var sortOrder: BookmarkManager.SortOrder { get set }
  • An array of custom bar button items to display on the right (or trailing) side.

    Declaration

    Objective-C

    @property (nonatomic, copy) NSArray<UIBarButtonItem *> *_Nonnull rightActionButtonItems;

    Swift

    var rightActionButtonItems: [UIBarButtonItem] { get set }
  • An array of custom bar button items to display on the left (or leading) side.

    Declaration

    Objective-C

    @property (nonatomic, copy) NSArray<UIBarButtonItem *> *_Nonnull leftActionButtonItems;

    Swift

    var leftActionButtonItems: [UIBarButtonItem] { get set }
  • The bookmark view controller delegate to detect when a bookmark entry is tapped.

    Declaration

    Objective-C

    @property (nonatomic, weak) id<PSPDFBookmarkViewControllerDelegate> _Nullable delegate;

    Swift

    @IBOutlet weak var delegate: BookmarkViewControllerDelegate? { get set }