iOS Development: How can I make my view transition to the right instead of to the default left?
I'm diving into iOS development and I was wondering if it's possible to make a view transition in from the left to the right. Similar to the transition that occurs when you pop a view con开发者_开发知识库troller off the nav stack, only I want the transition to occur when I push a view controller onto the stack. The solutions I've found on the net are difficult to follow as a newcomer and it looks like they're trying to accomplish more than what I'm trying to accomplish.
Thanks so much for your wisdom!
It's up to you to decide what kind of transition is best, depending on your application. Just remember to follows the Human Interface Guidelines. Anyway, you can easily accomplish this by using a CATransition
. Take a look at the documentation and download this Apple sample code, aptly named View Transitions to start with. Note that this is not the way to go if you want to push a new controller on the stack: this is the way to transition between two arbitrary views.
精彩评论