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.
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.
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.)
In Swift 4 and Swift 5 simply use:
UITableView.automaticDimension
Using 44px won't suffice because it will vary with different screen pixel densities.
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.
On iOS 12 the default height on iPhone X like devices (X, XS, XS Max, XR) is 49pt.
Other devices on iOS 12 still have 44pt as default. It's a subtle difference, but it feels like a good improvement in direct comparison.
If you won't believe me, measure for yourself in this screenshot (don't forget to divide by 3)... ;)