I want to resize a UINavigationBar . I stumbled upon several previously asked questions, but I think this is completely different than those.
Found that I have to subclass UINavigationBar and where I have to update its height. But then, to use this subclassical navigation bar, I have to use the UINavigationController method below.
There he is:
- (id) initWithNavigationBarClass:(nullable Class)navigationBarClass toolbarClass:(nullable Class)toolbarClass;
if I used this to install my subclass navigation bar, then how do I set it to rootViewController using the method below:
- (id) initWithRootViewController:(UIViewController *)rootViewController;
Is there any other way, I can achieve my goal of resizing the height of the navigation bar, and also install a root view controller in it?
ios objective-c resize uinavigationcontroller uinavigationbar
Hemang Jul 04 '15 at 7:08 2015-07-04 07:08
source share