Can someone tell me the pixel height of the iPhone navBar, when y开发者_开发技巧ou turn the phone Horizontal?
I know this is a basic question but I cannot locate the answer.
Thank You.
You shouldn't rely on hard coded values when dealing with UI sizing. Especially now that the [large-iPod-type-device] is on it's way.
You can get the height of the bar by querying its frame.
something along the lines of:
navigationController.navigationBar.frame.size.height;
will return the bar's height.
精彩评论