PTAddPagesViewController

@interface PTAddPagesViewController : UITableViewController <PTOverridable>

The PTAddPagesViewController displays a list of options for adding blank pages or inserting images as pages to a document.

  • Initializes a newly created reflow view controller that scrolls horizontally.

    Declaration

    Objective-C

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

    Swift

    init(toolManager: PTToolManager)

    Parameters

    toolManager

    the PTToolManager instance that the control coordinates with

    Return Value

    The initialized reflow view controller.

  • The PTAddPagesManager maintained by this view controller.

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic)
        PTAddPagesManager *_Nonnull addPagesManager;

    Swift

    var addPagesManager: PTAddPagesManager { get set }
  • The list of items displayed. The title, image, target and action properties are all used. By default this contains the addBlankPagesButtonItem, the addImagePageButtonItem, and the addDocumentPagesButtonItem maintained by this view controller.

    Declaration

    Objective-C

    @property (readwrite, copy, nonatomic, nullable)
        NSArray<UIBarButtonItem *> *items;

    Swift

    var items: [UIBarButtonItem]? { get set }
  • Used to show a PTPageTemplateViewController for adding blank pages.

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic)
        UIBarButtonItem *_Nonnull addBlankPagesButtonItem;

    Swift

    var addBlankPagesButtonItem: UIBarButtonItem { get set }
  • Used to show a UIImagePickerController for adding blank pages.

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic)
        UIBarButtonItem *_Nonnull addImagePageButtonItem;

    Swift

    var addImagePageButtonItem: UIBarButtonItem { get set }
  • Used to show a UIDocumentPickerViewController to insert pages from another document into the current document.

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic)
        UIBarButtonItem *_Nonnull addDocumentPagesButtonItem;

    Swift

    var addDocumentPagesButtonItem: UIBarButtonItem { get set }
  • Shows a PTPageTemplateViewController for adding blank pages to the document.

    Declaration

    Objective-C

    - (void)showPageTemplateViewController:(nonnull UIBarButtonItem *)sender;

    Swift

    func showPageTemplateViewController(_ sender: UIBarButtonItem)
  • Shows a UIImagePickerController to insert an image as a page into the document.

    Declaration

    Objective-C

    - (void)showImagePickerController:(nonnull UIBarButtonItem *)sender;

    Swift

    func showImagePickerController(_ sender: UIBarButtonItem)
  • Shows a UIDocumentPickerViewController to insert pages from another document into the current document.

    Declaration

    Objective-C

    - (void)showDocumentPickerViewController:(nonnull UIBarButtonItem *)sender;

    Swift

    func showDocumentPickerViewController(_ sender: UIBarButtonItem)