Reading notes : UITableView class reference

来源:互联网 发布:知乎如何盈利 编辑:程序博客网 时间:2024/05/21 07:11

1. Single column, allows vertical scrolling only. 


2. When you create a UITableView instance you must specify a table style, and this style cannot be changed.

In the plain style, a tableView can have an index that appears as a bar on the right hand side of the table.

 A table view in the grouped style cannot has an index.


3. A table view must have an object that acts as a data source and an object acts as a delegate. 

Typically these objects are either the application delegate or, more frequently, a custom UITableViewController object. 

The data source object must adopt the UITableViewDataSource protocol, and the delegate must adopt the UITableViewDelegate protocol.

DataSource object provide information forconstruction and managing the data model when the rows are inserted, deleted, or re-ordered. 


To be continued....

原创粉丝点击