Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Static Cells are showing empty in Interface Builder (running XCode 7.1)

I'm running Xcode 7.1 on OS 10.11.1. I have several tableviews with static cells. For cells that are below the size for the view controller, the data (labels, text fields, etc) of the static cells don't appear. The static cells will not show any saved data. If I scroll or do anything else, the static cells are all empty.

I can still see the static cells when I run the simulator, I just cannot edit the cells in interface builder.

Has anyone found a workaround for this issue?

like image 905
Henry Avatar asked Oct 26 '15 17:10

Henry


1 Answers

Finally found a workaround, as this still happens in Xcode 7.2 Beta: In the Interface Builder select the View Controller and set it's simulated size to "Freeform" in the attributes inspector, then switch to the size inspector and set a height that fits the whole content.

To be honest, this is way better than having to scroll. Guess this will become my default setup for static tableviews in the IB. :)

screenshot

like image 80
Thyraz Avatar answered Nov 15 '22 04:11

Thyraz