In viewDidLoad
I'm setting the height to be different from the standard 44 points. I want it to be 35 points, for example. Using the code:
CGRect frame = [[UIScreen mainScreen] bounds];
[self.navigationController.toolbar setFrame:CGRectMake(0, frame.size.height-35.f, frame.size.width, 35.f)];
and checking the frame's dimensions before and after I get a printout of:
Before: {{0, 623}, {375, 44}}
After: {{0, 632}, {375, 35}}
However when checking for this in the simulator, the height is constantly 44 points. The same is true when I use a large height value like 350, I get:
Before: {{0, 623}, {375, 44}}
After: {{0, 317}, {375, 350}}
I have thought of subclassing UIToolbar
and creating my own but UIToolbar
on UINavigationController
is a readonly property. What else may I try?