iOS 8 gray box over UITableView

后端 未结 4 1567
醉酒成梦
醉酒成梦 2021-02-20 15:21

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 myste

4条回答
  •  渐次进展
    2021-02-20 15:51

    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.

提交回复
热议问题