iPhone NavigationBar
[self.navigationController.navigationBar setBounds :CGRectMake(0, 0, 320, 70)];
After increasing navigationBar's height, how can I开发者_如何学Python vertically center the left- and rightBarButtonItem?
Just create a UIView and add a UILabel in it, then add that UIView as a subview to the navigationBar.(Add the UIView in the center)
Do you mean the vertical center?
You can't do this in an easy/supported way, since the extra space on top of the UINavigationBar is intended for help text and not to simply be a taller view. Consider redesigning your center view layout to deal with the fact that UINavigationBar is meant to be a fixed size.
精彩评论