[英]UISplitViewController transition from top to bottom instead of right to left
I have a root UISplitViewController that contains a UINavigationController related with a DetailViewController. 我有一个根UISplitViewController,它包含一个与DetailViewController相关的UINavigationController。 The DetailViewController calls, via a storyboard push segue, another ViewController, called SecondViewController. DetailViewController通过storyboard push segue调用另一个名为SecondViewController的ViewController。 When the user clicks on the Back button in SecondViewController toolbar, all the UISplitViewController has a transition from top to bottom, instead of a right-to-left transition of the DetailViewController. 当用户单击SecondViewController工具栏中的Back按钮时,所有UISplitViewController都有一个从上到下的过渡,而不是DetailViewController从右到左的过渡。 In the xCode designed all the transition style properties are set as "Flip horizontal". 在xCode设计中,所有过渡样式属性都设置为“水平翻转”。 Is there a way to solve it? 有办法解决吗?
I had the same problem in ios 5, landscape orientation. 我在ios 5中遇到了同样的问题,横向。 Adding shouldAutorotateToInterfaceOrientation: both in Master & Detail controller solved problem 添加shouldAutorotateToInterfaceOrientation:在Master&Detail控制器中解决了问题
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation {
return UIInterfaceOrientationIsLandscape(toInterfaceOrientation);
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.