Instance Method

initWithTitle:gridButtons:

Initializes a grid template with a title and a set of buttons.

Declaration

- (instancetype)initWithTitle:(NSString *)title gridButtons:(NSArray<CPGridButton *> *)gridButtons;

Parameters

title

The title shown in the grid template's navigation bar.

gridButtons

An array of grid buttons to display on the template.

Return Value

A newly initialized grid template.

See Also

Creating a Grid Template

CPGridButton

A menu item button displayed on a grid template.