0

After i do many test for change height of uinavigationbar. It seems that there are no effective ways can do that. self.navigationController.navigationBar.transform=CGAFFINE is not so good, It will also expand title and barbutton item. Is there any idea to do that. Very appreciated you help!

Vincent Xu
  • 1
  • 2
  • 3

2 Answers2

2

you can't change the height of navigation bar..

you can only change its width

Shubhank
  • 21,721
  • 8
  • 65
  • 83
  • Yep, iOS 5 really takes away any control of the nav bar, and even makes it a lot harder to override it with your own. – Hot Licks Mar 03 '12 at 09:52
  • So,That's meant UINavigationBar can not be feel free to change according to the requirements. It's too limited to develop customize App – Vincent Xu Mar 05 '12 at 06:13
  • 1
    http://stackoverflow.com/questions/894985/iphone-sdk-change-navigation-bar-height .. check the third answer involving category on the above link – Shubhank Mar 05 '12 at 06:32
0

You can try,

self.navigationController.navigationBarHidden = NO;
self.navigationController.navigationBar.frame = CGRectMake(0.0f, 0.0f, self.navigationController.navigationBar.bounds.size.width, 94.0f);
toytoy
  • 1,223
  • 1
  • 12
  • 14