Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Specify height of UIToolbar in Storyboard

enter image description here

When I try to change the height of a UIToolbar through Storyboard, the option is greyed out.

I'm aware I can do this programatically, but is there any alternative way to do it on my storyboard, perhaps by using a different interface item? It'd be better to have it all on storyboard, to avoid code confusion. Or should I not be changing the height - is that likely to get it rejected from the app store?

My end goal is a toolbar with 50 x 50 image icons on, and a bit of padding.

N.B. I've read this question - but here, the accepted answer doesn't seem to actually answer the question...

like image 719
Chris Avatar asked Feb 25 '14 17:02

Chris


1 Answers

If you use auto layout, you could set a Height Constraint. This worked for me on a UISegmentedControl, but I did not test it on a UIToolbar.

like image 109
Rainer Schwarze Avatar answered Oct 05 '22 12:10

Rainer Schwarze