码迷,mamicode.com
首页 > 其他好文 > 详细

UITableView属性及方法

时间:2015-05-04 23:31:53      阅读:152      评论:0      收藏:0      [点我收藏+]

标签:

1,initWithFrame:style:

构造函数,用来初始化UITableView

UITableView *tableView =  [[UITableView alloc]initWithFrame:CGRectMake(0, 0, 768, 1024-60-290) style:UITableViewStylePlain];

 

2,style

用来改变UITableView的样式

 

 

3,-(NSInteger)numberOfRowsInSection:(NSInteger)section

就是返回每组数据行的数量(Returns the number of rows (table cells) in a specified section.)

 

4,-(NSInteger)numberOfSections

返回分组的数量

 

5,separatorStyle
分隔符的样式

6,separatorColor
分隔符的颜色

7,rowHeight
行高

8,separatorEffect
分隔符的效果

9,backgroundView
所有Cell后面的大背景

10,separatorInset
设置线是否占满

11,-registerNib:forCellReuseIdentifier:

12,tableView:cellForRowAtIndexPath: (UITableViewDataSource)

13,-(UITableViewHeaderFooterView *)footerViewForSection:(NSInteger)section

14,-(UITableViewHeaderFooterView *)headerViewForSection:(NSInteger)section

 

 

UITableView属性及方法

标签:

原文地址:http://www.cnblogs.com/chenjianxiang/p/4477909.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!