PTCustomTableViewController
@interface PTCustomTableViewController : UITableViewController <PTOverridable>
The PTCustomTableViewController displays a selection of buttons and controls from an array of UIBarButtonItems.
-
The list of items displayed. The
title,image,targetandactionproperties are all used.Declaration
Objective-C
@property (nonatomic, copy, nullable) NSArray<UIBarButtonItem *> *items;Swift
var items: [UIBarButtonItem]? { get set } -
Returns an initialized
PTCustomTableViewControllerDeclaration
Objective-C
- (nonnull instancetype)initWithItems: (nonnull NSArray<UIBarButtonItem *> *)items;Swift
convenience init(items: [UIBarButtonItem])Parameters
itemsthe array of
UIBarButtonItemswith which to populate the table view.Return Value
an initialized
PTCustomTableViewController. -
Returns an initialized
PTCustomTableViewControllerDeclaration
Objective-C
- (nonnull instancetype)initWithItems: (nonnull NSArray<UIBarButtonItem *> *)items withTitle:(nullable NSString *)title;Swift
init(items: [UIBarButtonItem], withTitle title: String?)Parameters
itemsthe array of
UIBarButtonItemswith which to populate the table view.titlethe title of the table view.
Return Value
an initialized
PTCustomTableViewController. -
The delegate of the custom table view controller object.
Declaration
Objective-C
@property (nonatomic, weak, nullable) id<PTCustomTableViewControllerDelegate> delegate;Swift
weak var delegate: (any PTCustomTableViewControllerDelegate)? { get set } -
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; -
Undocumented
Declaration
Objective-C
- (instancetype)init NS_UNAVAILABLE;
PTCustomTableViewController Class Reference