我有一台带.rightBarButtonItem的UINavigationBar。如果我点击它,它会推送新的viewController,并自动弹出一个.leftBarButtonItem,将我带到我以前的viewController。
问题是(当我点击.leftBarButtonItem时)方向从横向更改为纵向模式,尽管我希望应用程序保持横向模式。我怎么才能修复它呢?
非常感谢!
发布于 2011-11-21 18:13:11
不清楚您是否在按下正确的按钮栏项目之前处于纵向模式。
听起来第一个视图控制器的shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation没有为纵向方向返回YES。
https://stackoverflow.com/questions/8209155
复制相似问题