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 YES.

    Declaration

    Objective-C

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

    Swift

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

    Declaration

    Objective-C

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

    Swift

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

    Declaration

    Objective-C

    @property (assign, readwrite, 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 PSPDFViewController.

    Declaration

    Objective-C

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

    Swift

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

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) PSPDFBookmarkManagerSortOrder sortOrder;

    Swift

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

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic)
        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 (assign, readwrite, nonatomic)
        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 (readwrite, nonatomic)
        id<PSPDFBookmarkViewControllerDelegate> _Nullable delegate;

    Swift

    @IBOutlet weak var delegate: PSPDFBookmarkViewControllerDelegate? { get set }
  • Undocumented

    Declaration

    Objective-C

    - (UITableViewCell *)configureCell:(UITableViewCell *)tableViewCell withBookmark:(PSPDFBookmark *)bookmark forRowAtIndexPath:(NSIndexPath *)indexPath inTableView:(UITableView *)tableView;

    Swift

    func configureCell(_ tableViewCell: UITableViewCell, with bookmark: PSPDFBookmark, forRowAt indexPath: IndexPath, in tableView: UITableView) -> UITableViewCell
  • Undocumented

    Declaration

    Objective-C

    - (void)updateBookmarkViewAnimated:(BOOL)animated;

    Swift

    func updateBookmarkView(animated: Bool)
  • Undocumented

    Declaration

    Objective-C

    - (void)updateBarButtonItems;

    Swift

    func updateBarButtonItems()
  • Undocumented

    Declaration

    Objective-C

    - (void)addBookmarkAction:(nullable id)sender;

    Swift

    func addBookmarkAction(_ sender: Any?)
  • Undocumented

    Declaration

    Objective-C

    - (void)doneAction:(nullable id)sender;

    Swift

    func doneAction(_ sender: Any?)