Why is my set cell height in Interface Builder not actually becoming the height in the app/simulator?

I set it to 95px in the storyboard. (Under size inspector)

But it ends up looking like this in the simulator (all squished):

I don't know what else to show. I don't know what's causing it. No, I don't define the height in code.

Answers


It is the table that determines the cell height (with its rowHeight property).

The cell height in the nib/storyboard is just a sandbox for you to design in; the cell will be resized at runtime in accordance with the table's rowHeight (or the delegate's heightForRowAtIndexPath: if implemented).

That is why everything in the cell needs to have good autoresizing or constraints; the cell can be resized on its way into the table view.


Need Your Help

ExtJs Grid is not updating as per response text

extjs grid

Please help me out in the below mentioned situation;

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.