StevenD

StevenD
- Name: [not set]
- Favorite Languages: [not set]
- Website: [not set]
- Location: [not set]
- About Me: [not set]
-
iPhone Tutorial - How to Create a Blue Navigation Button
08/23/2009 - 11:16
Thanks for the tutorial. My question is a little off-topic, but I can't find the answer anywhere, and this tutorial almost touches on the issue.
My app works in portrait, with a navigation bar. I want to have a horizontal navigation bar (readable with the device in landscape mode) when the iPhone is turned to landscape, and the navigation bar thinner, according to the HIG.
When I detect an orientation change to landscape, I run a CGAffine transform on the navigationBar so that it will be *readable* in landscape mode. Fine. I change its frame to place it along the long axis of the device, and make it thinner. Fine. But the title text and back button won't scale to fit the new navigationBar after the transform. They are too big, and sitting partially off of the bar.
The transform seems to mess things up. How do I rotate a navigation bar to landscape mode while making it thinner and scaling the items in the bar to the new thinner size? Even a link to useful info would be greatly appreciated.
Recent Comments