views:

3796

answers:

2

Hello ,

Can some one tell me how to change the navigation bar height.

I am trying to do this but I think I am doing wrong.

CGFloat navBarHeight = 10;

self.navigationController.navigationBar.frame.size.width = navBarHeight;

Thanks

+2  A: 

frame.size.width?

Kendall Helmstetter Gelner
A: 

Try using -

CGFloat navBarHeight = 10.0f;    
CGRect frame = CGRectMake(0.0f, 0.0f, 320.0f, navBarHeight);
[self.navigationController.navigationBar setFrame:frame];
Raal