Is there an object or function call that will provide standard dimensions for various user interface elements in the iPhone SDK? Specifically I'm looking for the width of the whitespace gutter the Interface Builder normally recommends you put get between controls and the edge of a view.
In windows there is a function call called GetSystemMetrics that supplies some of this type of information for Windows. When looking at the various iPhone examples around the web I see a lot of hard coding of dimensions. I generally don't like to do things that way.
I don't think there is any method that will give you this information. As a general rule, however, 20 points between controls and screen edges and 8 points between controls (table view cells may be different though).
Exceptions to this are UIPicker controls which extend all the way across the iPhone screen, and possibly a few others.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With