![]() UIPercentDrivenInteractiveTransitionĪn object that drives an interactive animation between one view controller and another. The transitioning context is available for you to use it during the animation. This context encapsulates all the info about the transitioning, you can get the participating views, controllers and many more from this object. These objects are returned by the transition delegate, so basically this is the place where you implement the fancy custom view animations. Presenting and dismissing something modally is not exactly the same thing as pushing & popping view controllers inside a navigation stack. The navigation controller operation is just an enum which contains the "direction" of the navigation animation. ![]() It's almost the same as the transitioning delegate for the view controllers, but you'll see this in action later on. The navigation controller delegate also has two methods that are responsible for custom push and pop animations. Those objects will be responsible for the actual animation process, and this delegate is the place where you can "inject your code" to the UIKit framework. ![]() UIViewControllerTransitioningDelegateĮvery view controller can have a transition delegate, in that delegate implementation you can provide the custom animation and interaction controllers. There are many classes and delegates involved during the process of making a custom transition, let's walk through these items real quick, and do some coding afterwards. ![]() UIKit custom transition API - a theoretical lesson ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |