iPhone - How set uinavigationbar height? -
I want to shorten the top of the navigation How do you get it? This is what I have tried to do so far, but as you can see, though I make the navigationbar smaller, the area that is used to capture it is still (black).
[window junction: [navigation controller view]]; Navigation controller.view.fr = cgartextmake (0, 100, 320, 280); Navigation Controller Navigationbar.fr = CGRactam (0, 0, 320, 20); Navigation Controller View.backgroundColor = [UIColor blackColor]; [Window-making and knowledgeable];
@implementation UINavigationBar (customNav) - (CGSize) sizeThatFits: (CGSize) size {CGSize newSize = CGSizeMake (self.frame.size.width, 70); New return; } @end
Comments
Post a Comment