简体   繁体   English

UISplitViewController从上到下而不是从右到左过渡

[英]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.

相关问题 UISplitViewController从右边而不是左边显示弹出框 - UISplitViewController display the popover from right instead of left 从下到上而不是从右到左关闭 UIViewController - Dismiss a UIViewController from bottom to top instead of right to left UIViewController从右到左过渡 - UIViewController Transition from right to left Objective-C UITableViewCell左/右/上/下空间 - Objective-C UITableViewCell left/right/top/bottom space 如何为 UIView 的左下角、右下角和左上角设置 cornerRadius? - how to set cornerRadius for only bottom-left,bottom-right and top-left corner of a UIView? dismissModalViewController with transition:从左到右 - dismissModalViewController with transition: left to right 在addSubView中从左到右添加幻灯片放映(转换) - Add Slide In from Left to Right animation(transition) in addSubView iOS开发:如何使视图向右过渡而不是默认向左过渡? - iOS Development: How can I make my view transition to the right instead of to the default left? 如何在MapKit中获取地图的左上角和右下角经度 - How to get left-top and right-bottom latitude and longitude of map in MapKit 页面卷曲过渡像书的两面(从右侧到左侧的过渡,反之亦然) - page curl transition like a book two sides (transition from right side to left side & vice versa)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM