In our project we wanted to change the size of navigationbar. Have achieved it with
@implementation UINavigationBar (customNav)
- (CGSize)sizeThatFits:(CGSize)size {
return CGSizeMake(self.superview.bounds.size.width, 55.0f);
}
@end
But the problem here is.. as you would see go button is little down from screen edge. But I wanted it to be in ultimate corner of screen. I use backgroundColor:
, setTitle:forState:
methods for constructing look of go button. also back button to be vertically middle. How can I achieve that. Tried Using edgeInsets:
but no hope.
Edit: Go button height is 10px less than barheight.
if I give equal height. Below is the result