Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS 8 gray box over UITableView

I am making an app where I need to use UITableViews to display content in an organized fashion, but since I updated to iOS 8 and Xcode 6 I have been getting a mystery gray box over almost the entire view. This can be seen in the image below. This does not happen on every UITableView, just some (with no apparent pattern).

enter image description here

like image 572
Connor Avatar asked Jun 23 '14 06:06

Connor


Video Answer


1 Answers

In iOS 8, you must specify a height in the UITableView's delegate:

-(CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath{
    return 44.0;
}

In iOS 7 and earlier, a default was accepted. See this link for more information.

like image 199
Connor Avatar answered Nov 11 '22 13:11

Connor