UITableView小片断,小总结

UITableView小片段,小总结1.- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NS

UITableView小片段,小总结

1.

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

方法要比

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

先返回

?

即,高度比cell填充先返回

?

2.

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