ipad - UISplitViewController Master拆分的奇怪行为

Ole*_*leg 3 xcode cocoa-touch objective-c ipad uisplitviewcontroller

我正在开发UISplitViewController应用程序,Master视图嵌入到Navigation Controller.

每次我Master进入一个新的GroupsViewController,然后按"后退"按钮,我GroupsViewController移动到屏幕的中心,整个SplitViewController从顶部垂直覆盖它:

在此输入图像描述

它只发生在横向方向.在肖像中一切正常.

segue是从NavigationBarButtona到aGroupsViewController

- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
{
if ([[segue identifier] isEqualToString:@"ShowGroupsSegue"])
    {
        GroupsViewController *groupsController = (GroupsViewController *)[segue destinationViewController];
        groupsController.contactsdelegate = self;
    }
}
Run Code Online (Sandbox Code Playgroud)

有什么建议我该如何解决?

Ole*_*leg 5

我通过确保相关课程在iPad上为所有方向返回YES(BOOL)shouldAutorotateToInterfaceOrientation实现它.

我有一个通用项目,因此特定的类仍然设置为适当的iPhone设置(仅返回YES UIInterfaceOrientationPortrait).