我遇到了有关 iphone 屏幕方向的问题。我的应用程序的基础 sdk 是 ios 6.0,部署目标是 4.3,并在 ios 5.0 和 5.1 上运行
在应用程序的 plist 文件中,我设置了Portrait (bottom home button),Landscape (left home button)和Landscape (right home button). 我正在开发一个通用应用程序。因此,在每个视图的- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation方法中,我都会有条件地返回portraitiphone 和landscapeipad。
我的导航流程是:
UINavigatinController推送的UITableViewControler第一个选项卡UINavigationController在rootViewController.
在我最后一个 viewController 的- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation方法中,我返回了YES. 但是这个视图的应用程序根本没有旋转。甚至没有调用- (void)willRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration方法。:(
我的要求是只支持一个视图控制器而不是整个应用程序的横向和纵向方向。
请帮我。