TKTableViewController Class Reference
| Inherits from | UIViewController |
| Declared in | TKTableViewController.h TKTableViewController.m |
Overview
This class provides basic UITableViewController functionality under the TKViewController class.
The key differences between TKTableViewController and UITableViewController:
– The UITableView is a subview of the base view.
– The content offset of the UITableView is remembered if the view is ever deconstructed by a memory warning.
– Built to easily allocate and handle an empty view and search functionality.
Tasks
Other Methods
Properties
-
tableViewproperty -
styleproperty -
searchBarproperty -
searchBarDisplayControllerproperty -
clearsSelectionOnViewWillAppearproperty
Properties
clearsSelectionOnViewWillAppear
The default value of this property is YES. When YES, the table view controller clears the table’s current selection when it receives a viewWillAppear: message. Setting this property to NO preserves the selection.
@property (nonatomic, assign) BOOL clearsSelectionOnViewWillAppearDeclared In
TKTableViewController.hsearchBar
Returns a UISearchBar view.
@property (nonatomic, strong) UISearchBar *searchBarDeclared In
TKTableViewController.hsearchBarDisplayController
Returns a UISearchDisplayController for the search bar and table view.
@property (nonatomic, strong) UISearchDisplayController *searchBarDisplayControllerDeclared In
TKTableViewController.hInstance Methods
initWithStyle:
Initializes a table-view controller to manage a table view of a given style.
- (instancetype)initWithStyle:(UITableViewStyle)styleParameters
- style
A constant that specifies the style of table view that the controller object is to manage (
UITableViewStylePlainorUITableViewStyleGrouped).
Return Value
An initialized TKTableViewController object or nil if the object couldn’t be created.
Declared In
TKTableViewController.h