UITableViewCell-01

时间:2015-03-13 12:35:53   收藏:0   阅读:104

UITableViewCell

1)当所有的cell的高度都一样的时候

  使用:tableView.rowHeight,这样效率高。

2)当cell的高度不一样时

  使用:

- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
{
return 80;
},这样可以控制没有个cell的高度

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!