Search code examples
iosuser-interfaceuitoolbar

iOS: Creating a taller UIToolbar


enter image description here

I want to create the UI above. Specifically, a taller toolbar. But I need to do so in a way that the underlying UI (i.e. content view) displays accordingly (i.e. underneath the toolbar.

I am familiar with the new UIAppearance options in iOS 5. However, these seem to be more about skinning, not adjust sizes.

I imagine a could make the UI elements and add them to the window? But wouldn't that cause sizing issues with the content views. Seems hacky…

So, what would be the way to achieve this UI. Ideally supporting back to iOS 4.2. But an iOS 5 solution is welcome.


Solution

  • Since Apple allow you to customized their Controls, the only way to customize is to use customized controls. One way is to use Custom-UIToolbar derived from UIView.