TTTableViewController Class Reference

Inheritance diagram for TTTableViewController:
TTModelViewController TTViewController <TTModelDelegate> TTNavigatorViewController TTBaseViewController UIViewController TTExtensionInfoController TTExtensionsController TTThumbsViewController

List of all members.

Public Member Functions

(id) - initWithStyle:
 Initializes and returns a controller having the given style.
(id< UITableViewDelegate >) - createDelegate
 Creates an delegate for the table view.
(void) - setTableBannerView:animated:
 Sets the view that is displayed at the bottom of the table view with an optional animation.
(void) - showMenu:forCell:animated:
 Shows a menu over a table cell.
(void) - hideMenu:
 Hides the currently visible table cell menu.
(void) - didSelectObject:atIndexPath:
 Tells the controller that the user selected an object in the table.
(BOOL) - shouldOpenURL:
 Asks if a URL from that user touched in the table should be opened.
(void) - didBeginDragging
 Tells the controller that the user began dragging the table view.
(void) - didEndDragging
 Tells the controller that the user stopped dragging the table view.
(CGRect) - rectForOverlayView
 The rectangle where the overlay view should appear.
(CGRect) - rectForBannerView
 The rectangle where the banner view should appear.

Protected Attributes

UITableView_tableView
UIView_tableBannerView
UIView_tableOverlayView
UIView_loadingView
UIView_errorView
UIView_emptyView
NSTimer * _bannerTimer
UIView_menuView
UITableViewCell * _menuCell
UITableViewStyle _tableViewStyle
UIInterfaceOrientation _lastInterfaceOrientation
BOOL _variableHeightRows
BOOL _showTableShadows
id< TTTableViewDataSource_dataSource
id< UITableViewDelegate > _tableDelegate

Properties

IBOutlet UITableViewtableView
UIViewtableBannerView
 A view that is displayed as a banner at the bottom of the table view.
UIViewtableOverlayView
 A view that is displayed over the table view.
UIViewloadingView
UIViewerrorView
UIViewemptyView
UIViewmenuView
id< TTTableViewDataSourcedataSource
 The data source used to populate the table view.
UITableViewStyle tableViewStyle
 The style of the table view.
BOOL variableHeightRows
 Indicates if the table should support non-fixed row heights.
BOOL showTableShadows
 When enabled, draws gutter shadows above the first table item and below the last table item.

Member Function Documentation

- (id< UITableViewDelegate >) createDelegate  

Creates an delegate for the table view.

Subclasses can override this to provide their own table delegate implementation.

- (void) didSelectObject: (id)  object
atIndexPath: (NSIndexPath*)  indexPath 

Tells the controller that the user selected an object in the table.

By default, the object's URLValue will be opened in TTNavigator, if it has one. If you don't want this to be happen, be sure to override this method and be sure not to call super.


Property Documentation

- (id<TTTableViewDataSource>) dataSource [read, write, retain]

The data source used to populate the table view.

Setting dataSource has the side effect of also setting model to the value of the dataSource's model property.

- (BOOL) showTableShadows [read, write, assign]

When enabled, draws gutter shadows above the first table item and below the last table item.

Known issues: When there aren't enough cell items to fill the screen, the table view draws empty cells for the remaining space. This causes the bottom shadow to appear out of place.


The documentation for this class was generated from the following files:
blog comments powered by Disqus