Can some one tell me how to change the navigation bar height?
Here is what i have so far:
CGFloat navBarHeight = 10;
self.navigationController.navi
Most Simple and Effective Solution is to add a category to navigation bar. (but maybe not the best solution)
@interface UINavigationBar (CustomHeight)
@end
@implementation UINavigationBar (CustomHeight)
- (CGSize)sizeThatFits:(CGSize)size {
CGRect screenRect = [[UIScreen mainScreen] bounds];
return CGSizeMake(screenRect.size.width, kNavBarHeightNoStatus);
}
@end
knavBarHeightNoStatus is the height of your navbar. We use UIScreen bounds because frame of UINavigationBar is wrong
PS: Be careful, you can have some issues using it with a SideMenu