iOS 8 gray box over UITableView

后端 未结 4 1507
醉酒成梦
醉酒成梦 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:52

    Strangely enough, it has to do with the Table View Separator Style. If you set that to None, the problem will go away. But of course, then you have no separators! If you want to use Single Line separators, you have to manually specify a cell height in -tableView:heightForRowAtIndexPath:.

    I have no idea why this is the case, but I am guessing it has something to do with the new self-sizing table rows. Time to do some research :)

提交回复
热议问题