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 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
PTAddPagesManager
maintained 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
,target
andaction
properties are all used. By default this contains theaddBlankPagesButtonItem
, theaddImagePageButtonItem
, and theaddDocumentPagesButtonItem
maintained by this view controller.Declaration
Objective-C
@property (nonatomic, copy, nullable) NSArray<UIBarButtonItem *> *items;
Swift
var items: [UIBarButtonItem]? { get set }
-
Used to show a
PTPageTemplateViewController
for adding blank pages.Declaration
Objective-C
@property (nonatomic, strong) UIBarButtonItem *_Nonnull addBlankPagesButtonItem;
Swift
var addBlankPagesButtonItem: UIBarButtonItem { get set }
-
Used to show a
UIImagePickerController
for 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
UIDocumentPickerViewController
to 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
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 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 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)
-
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;