Iphone ios6中UISplitView的旋转

Iphone ios6中UISplitView的旋转,iphone,ios,objective-c,ios6,uisplitviewcontroller,Iphone,Ios,Objective C,Ios6,Uisplitviewcontroller,我已经在我的应用程序中实现了SplitView 我的应用程序适用于ios 5和ios 6 在iOS5中使用方法 - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation 旋转效果很好 但在ios 6中,roataion方法不调用。我在ios 6上尝试过以下方法: - (BOOL)shouldAutorotate { return YES; } - (NSInt

我已经在我的应用程序中实现了
SplitView

我的应用程序适用于ios 5和ios 6

在iOS5中使用方法

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
旋转效果很好

但在ios 6中,roataion方法不调用。我在ios 6上尝试过以下方法:

- (BOOL)shouldAutorotate
{
    return YES;
}

- (NSInteger)supportedInterfaceOrientations
{
    return UIInterfaceOrientationMaskAll;
}
我还搜索并尝试了ios 6的其他轮换方法,但都不起作用

我想支持ios 5和ios 6的轮换

我该怎么做


谢谢。

请在AppDelegate中重写此方法:

- (NSUInteger)application:(UIApplication *)application supportedInterfaceOrientationsForWindow:(UIWindow *)window{ return UIInterfaceOrientationMaskAll;//Or Required by } -(NSInteger)应用程序:(UIApplication*)应用程序支持的Interface Orientions for window:(UIWindow*)窗口{ 返回UIInterfaceOrientationMaskAll;//或 }
您是否已在Targets Navigator的Summary(摘要)选项卡中打开所有支持的方向?旋转不起作用,或者您的方法未被调用?@hpiOSCoder-是的,我已打开所有支持的方向orientation@jrturton-方法不会被调用。那么您希望在这些方法中执行什么操作?界面是否已正确旋转?