0

How can I create a thinner UIToolBar in my iOS-app? The standard size is 44px, and I would like to have it in 30 or 35px.

Is it possible?

ingh.am
  • 24,319
  • 41
  • 126
  • 176
Emil
  • 7,051
  • 17
  • 72
  • 131

3 Answers3

2

You could try changing its frame, but I suspect the best way is to subclass it and override its drawRect method. Other than that you could invent your own UIView subclass for a thin toolbar.

Ben
  • 2,982
  • 1
  • 14
  • 12
1

Sounds like a custom UIView that you'll need to create.

See This Link

Community
  • 1
  • 1
Dutchie432
  • 27,738
  • 20
  • 88
  • 109
1

Not possible to change the height of UIToolbar. You could create your own custom toolbar or if you're feeling lazy use an image that looks like one.

In landscape mode, I believe the toolbar height gets smaller automatically, but this is a fixed size.

ingh.am
  • 24,319
  • 41
  • 126
  • 176
  • You can change the height of UIToolBar. See http://stackoverflow.com/questions/2135407/is-there-a-way-to-change-the-height-of-a-uitoolbar – jj0b Apr 12 '13 at 20:27