Instance Method

initWithStyle:

Initializes a table-view controller to manage a table view of a given style.

Declaration

- (instancetype)initWithStyle:(UITableViewStyle)style;

Parameters

style

A constant that specifies the style of table view that the controller object is to manage (UITableViewStylePlain or UITableViewStyleGrouped).

Return Value

An initialized UITableViewController object.

Discussion

If you use the standard init method to initialize a UITableViewController object, a table view in the plain style is created.

See Also

Creating the Table View Controller