IOS7-style push segue, left to right

I know how to encode a custom segue that will go left to right (while a normal push segue is from right to left). But, as you know, iOS7 push segue is different from pre-ios7: indeed, the controller of the incoming view actually floats at the top of the previous one, which only moves a small distance to the side.

I want to do the same, but vice versa. Should I create a custom segment? Should the back segment be available somewhere, since it is launched by the back button on mine navigationController?

In general, I need a transition between ViewControllersin navigationController, like the default transition by default, but vice versa.

Can someone help me? Many thanks

+4
source share
2 answers

To do this, you need to use custom transitions for the controller. There’s a great video and sample WWDC 2013 code for this. End session 218 "Custom transitions using view controllers"

This is also a great blog entry to get you started - http://www.shinobicontrols.com/blog/posts/2013/10/03/ios7-day-by-day-day-10-custom-uiviewcontroller-transitions/

+1
source

You can try this trick https://github.com/bezumkin/LeftToRightSegue

For example, we have two windows: Main and Info. And we want to display the Info window from left to right.

, show segue "". , , "i".

. http://www.youtube.com/watch?v=Hs_CDUJGWcM

+1

All Articles