我注意到了iOS 9中的一个错误,或者可能是我没有正确使用某些东西。iOS 9在iOS 9中旋转后,UINavigation栏内容不居中?
在针对iPhone的空项目下面的代码:
UIBarButtonItem *anotherButton = [[UIBarButtonItem alloc] initWithTitle:@"Show" style:UIBarButtonItemStylePlain target:self action:@selector(test:)];
self.navigationItem.rightBarButtonItem = anotherButton;
self.navBar.items = @[self.navigationItem];
我添加了一个自定义的按钮,导航栏属性。我注意到,在从纵向旋转到横向之后,按钮向下移动,导航栏中的按钮未正确居中。如果我编译的iOS 8.4例如
Portrait Screen Landscape Screen 此代码工作正常,但不能在iOS 9
有没有人遇到过吗?
谢谢!
感谢您的回答,但我确实是你从开始描述:)。 –