Back Button Animation in Navigation Controller

后端 未结 5 1816
执笔经年
执笔经年 2021-02-10 19:39

CATransitions can be used to animate transitions in Navigation Controllers when drilling down. However when using Back button og Navigation Controller (going back up) animation

5条回答
  •  执念已碎
    2021-02-10 19:48

    I'm not sure I understand the question. UINavigationController already uses a slide transition when switching views. If you want to attach a custom transition to the back button, you're going to have to create a custom back button and connect it to an action that will run your CATransition code.

提交回复
热议问题