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, target and action properties are all used.

    Declaration

    Objective-C

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

    Swift

    var items: [UIBarButtonItem]? { get set }
  • Returns an initialized PTCustomTableViewController

    Declaration

    Objective-C

    - (nonnull instancetype)initWithItems:
        (nonnull NSArray<UIBarButtonItem *> *)items;

    Swift

    init(items: [UIBarButtonItem])

    Parameters

    items

    the array of UIBarButtonItems with which to populate the table view.

    Return Value

    an initialized PTCustomTableViewController.

  • The delegate of the custom table view controller object.

    Declaration

    Objective-C

    @property (nonatomic, weak, readwrite, nullable)
        id<PTCustomTableViewControllerDelegate>
            delegate;

    Swift

    weak var delegate: PTCustomTableViewControllerDelegate? { get set }