我有一个应用程序,其中包含5.0作为部署目标,6.1作为基本sdk,并且它在iOS 6.x设备/模拟器上运行良好。但在5.x上,我的观点不是在旋转。我搜索了一下,发现了一些Stackoverflow的帖子,但我不能找到正面和反面的一切。我想我需要实现我自己使用的不同视图控制器的子类,但是哪一个是对的?为什么iOS 5的轮换在iOS 6下工作不起作用
在我的应用程序委托didFinishLaunchingWithOptions
我使用它来创建我的应用程序:
self.tabBarController = [[UITabBarController alloc] init];
self.tabBarController.viewControllers = @[viewController1, viewController2, viewController3];
self.window.rootViewController = self.tabBarController;
[self.window makeKeyAndVisible];
创建我viewController1 ..这样的:
viewController1 = [[UINavigationController alloc] initWithRootViewController:[[SearchVC alloc] initWithNibName:@"SearchVC_iPhone" bundle:nil]];
我试图在我的SearchVC_iPhone视图控制器实现shouldAutorotateToInterfaceOrientation
我已经尝试在子类中继承UINavigationController
并实现shouldAutorotateToInterfaceOrientation
,但它不适合我,我真的只是在这里猜测。
请任何人都知道这个东西帮助我在这里,我需要做什么才能让这个工作在iOS 5.x也?
谢谢
瑟伦
请设置你的问题。 – dhcdht 2013-03-04 11:49:07