UITableView Section header overlapping with row on 64 bit iPad. Works fine on 32 bit

来源:互联网 发布:c语言指针看什么书 编辑:程序博客网 时间:2024/04/29 11:48

最近问题不大对,碰到这么个囧问题。

在这么下去我就要引咎辞职了。

谷歌搜索:uitableview 64 bit


Found the solution.

had to use CGFloat instead of float as the return type of heightForHeaderAtSection:




天雷滚滚

I had the same Problem. In my case the problem could be solved by changing

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

to

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

As simple as that.


0 0
原创粉丝点击