UITableView Empty with iOS 9 beta 5 update

大城市里の小女人 提交于 2019-11-27 09:28:27

I can't say if this is a universal solution, but in the exact same scenario (tablviewcell content empty at runtime after updating to XCode 7 beta 5) this solved it for me:

I had to go through every single item inside the content view (including all constraints) and tick the checkbox "Installed" in the properties inspector. Initially only wR hR was checked.

I also had this problem in iOS 9.1. If you're only developing for one device family per storyboard, try unchecking "Use Size Classes" in the file inspector of the storyboard. It solved it for me.

It happens really often after each update of iOS, that heightForRowAtIndexPath doesn't work well anymore.

You should try setting :

self.tableView.estimatedRowHeight = XX;
self.tableView.rowHeight = XX;

and see if it helps.

2nd answer:

Are your nameLabel added to contentView of your cell or the cell directly ? It should be contentView.

Prabhu.Somasundaram

I suspect the cells view hierarchy, check in view debugger. use bringsubviewtofront if they are behind

For my fix I had to find the problematic subview through trial and error of removing each until the issue went away. I don't know exactly what the issue was but after creating a new subview it works now. Absolutely zero warnings or errors generated.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!