self.navigationItem.titleView 不居中显示的问题
自定义一个AUIView,
AUIView * v=[AUIView new];
self.navigationItem.titleView = v;
在AUIView类内重写 setFrame
- - (void)setFrame:(CGRect)frame
- {
- [super setFrame:frame];
- self.center = CGPointMake(self.superview.center.x, self.center.y);
- }
内容从这里来 http://blog.csdn.net/wsxzk123/article/details/44755787