views:

2698

answers:

2

I thought this information would have been easier to find :-)

What is the default height of a UITableViewCell? It looks like 44 pixels, but I'd prefer to be sure.

+1  A: 

That sounds about right. But to be sure you could load up Interface builder, put in a UITableViewCell into the project then check the size properties in the Inspector window. I do not have my MacBook with me right now so I cannot check. But if you don't get a better answer from someone, that is how you can check for yourself.

Ziltoid
Ah, okay, that is where I originally got the 44 from.
unforgiven3
+23  A: 

It's 44 pixels. Definitely. I'll never forget that number.

44px is also the default height for UIToolbar and UINavigationBar. (Both switch to 32px when autorotated to landscape orientation.)

Marco
Haha, "I'll never forget that number" sounds ominous ;-)
unforgiven3
Does UIToolbar switch automatically? The UINavigationBar switched but I had to do it manually for the UIToolbar.
zekel
Does anyone know if there is a way to retrieve this value programatically?
Antony Perkov