UITableView标题剪辑问题

时间:2015-02-02 07:22:27

标签: objective-c tableview clipping

我遇到了UITableView的视觉问题,表格视图的标题在5,4,4s和3个iPhone上正确显示,但是5s,6,6 +有一个剪辑问题。有谁知道问题可能是什么?下面的图片。

问题5S + https://www.dropbox.com/s/eckmvddmwspugdk/Screenshot%202015-02-02%2002.20.49.png?dl=0

非问题4S和5 https://www.dropbox.com/s/e102s5iojk05kd6/Screenshot%202015-02-02%2002.20.02.png?dl=0

https://www.dropbox.com/s/6jiqw3o4f0tzfou/Screenshot%202015-02-02%2002.18.30.png?dl=0

- (NSString *)tableView:(UITableView *)tableView titleForHeaderInSection:(NSInteger)section
{
    return @"Excercises Queued Up";
}

-(float)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section {
    return  30.0;
}

这两个功能也被覆盖

1 个答案:

答案 0 :(得分:0)

我实际上已经解决了这个问题但是为什么会发生这种情况呢? - (float)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section {return 30.0; } - 它工作了