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
toolManagerthe
PTToolManagerinstance that the control coordinates withReturn Value
The initialized reflow view controller.
-
The tool manager used by this view.
Declaration
Objective-C
@property (nonatomic, strong, readonly) PTToolManager *_Nonnull toolManager;Swift
var toolManager: PTToolManager { get } -
The
PTAddPagesManagermaintained by this view controller.Declaration
Objective-C
@property (nonatomic, strong) PTAddPagesManager *_Nonnull addPagesManager;Swift
var addPagesManager: PTAddPagesManager { get set } -
The list of items displayed. The
title,image,targetandactionproperties are all used. By default this contains theaddBlankPagesButtonItem, theaddImagePageButtonItem, and theaddDocumentPagesButtonItemmaintained by this view controller.Declaration
Objective-C
@property (nonatomic, copy, nullable) NSArray<UIBarButtonItem *> *items;Swift
var items: [UIBarButtonItem]? { get set } -
Used to show a
PTPageTemplateViewControllerfor adding blank pages.Declaration
Objective-C
@property (nonatomic, strong) UIBarButtonItem *_Nonnull addBlankPagesButtonItem;Swift
var addBlankPagesButtonItem: UIBarButtonItem { get set } -
Used to show a
UIImagePickerControllerfor adding blank pages.Declaration
Objective-C
@property (nonatomic, strong) UIBarButtonItem *_Nonnull addImagePageButtonItem;Swift
var addImagePageButtonItem: UIBarButtonItem { get set } -
Used to show the camera for adding blank pages from a photo.
Declaration
Objective-C
@property (nonatomic, strong) UIBarButtonItem *_Nonnull addCameraImagePageButtonItem;Swift
var addCameraImagePageButtonItem: UIBarButtonItem { get set } -
Used to show the camera for adding blank pages from scanner.
Declaration
Objective-C
@property (nonatomic, strong) UIBarButtonItem *_Nonnull addScannedPageButtonItem;Swift
var addScannedPageButtonItem: UIBarButtonItem { get set } -
Used to show a
UIDocumentPickerViewControllerto insert pages from another document into the current document.Declaration
Objective-C
@property (nonatomic, strong) UIBarButtonItem *_Nonnull addDocumentPagesButtonItem;Swift
var addDocumentPagesButtonItem: UIBarButtonItem { get set } -
Shows a
PTPageTemplateViewControllerfor adding blank pages to the document.Declaration
Objective-C
- (void)showPageTemplateViewController:(nonnull UIBarButtonItem *)sender;Swift
func showPageTemplateViewController(_ sender: UIBarButtonItem) -
Shows a
UIImagePickerControllerto insert an image as a page into the document.Declaration
Objective-C
- (void)showImagePickerController:(nonnull UIBarButtonItem *)sender;Swift
func showImagePickerController(_ sender: UIBarButtonItem) -
Shows the camera to take a photo to add as a page into the document.
Declaration
Objective-C
- (void)showCamera:(nonnull UIBarButtonItem *)sender;Swift
func showCamera(_ sender: UIBarButtonItem) -
Shows the scanner to add scanned images as pages into the document.
Declaration
Objective-C
- (void)showScanner:(nonnull UIBarButtonItem *)sender;Swift
func showScanner(_ sender: UIBarButtonItem) -
Shows a
UIDocumentPickerViewControllerto insert pages from another document into the current document.Declaration
Objective-C
- (void)showDocumentPickerViewController:(nonnull UIBarButtonItem *)sender;Swift
func showDocumentPickerViewController(_ sender: UIBarButtonItem) -
Undocumented
Declaration
Objective-C
- (instancetype)init NS_UNAVAILABLE; -
Undocumented
Declaration
Objective-C
- (instancetype)initWithStyle:(UITableViewStyle)style NS_UNAVAILABLE; -
Undocumented
Declaration
Objective-C
- (instancetype)initWithNibName:(nullable NSString *)nibNameOrNil bundle:(nullable NSBundle *)nibBundleOrNil NS_UNAVAILABLE; -
Undocumented
Declaration
Objective-C
- (instancetype)initWithCoder:(NSCoder *)aDecoder NS_UNAVAILABLE;
PTAddPagesViewController Class Reference