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, 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

    convenience init(items: [UIBarButtonItem])

    Parameters

    items

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

    Return Value

    an initialized PTCustomTableViewController.

  • Returns an initialized PTCustomTableViewController

    Declaration

    Objective-C

    - (nonnull instancetype)initWithItems:
                                (nonnull NSArray<UIBarButtonItem *> *)items
                                withTitle:(nullable NSString *)title;

    Swift

    init(items: [UIBarButtonItem], withTitle title: String?)

    Parameters

    items

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

    title

    the 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;