开发者

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?

iPhone NavigationBar


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜