读书人

UITableView小片断,小总结

发布时间: 2013-04-05 10:24:33 作者: rapoo

UITableView小片段,小总结

1.

- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath

方法要比

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath 方法

先返回

?

即,高度比cell填充先返回

?

2.

xib自定义Cell,复用无效;需要用代码重写

读书人网 >移动开发

热点推荐