我是在一个SPLITVIEW项目工作时,Xcode中已更新为V4.5。 从那时起自转是完美的工作。 更新后,自转仅适用于iOS 6在iOS 5.1中我我的肖像堆栈。 我已阅读所有可能的解决方案,但似乎没有什么能够解决我的问题。 下面是我迄今所做的:
检查了所有的方向都在我的plist。 更换(BOOL)shouldAutorotateToInterfaceOrientation:
用
- (BOOL)shouldAutorotate
{
return TRUE;
}
- (NSUInteger)supportedInterfaceOrientations
{
return UIInterfaceOrientationMaskAll;
}
- (UIInterfaceOrientation)preferredInterfaceOrientationForPresentation
{
return UIInterfaceOrientationLandscapeRight;
}
我添加以下代码段中的应用程序代理
- (NSUInteger)application:(UIApplication *)application supportedInterfaceOrientationsForWindow:(UIWindow *)window
{
return (UIInterfaceOrientationMaskAll);
}
我在另一个答案显示下面的代码片段我怎么过的我不知道如何实现它的SPLITVIEW控制器
-(BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
...
window.rootViewController = topLevelViewController;
...
}
任何人可以帮助我这个?