How to execute some code after a segue is done?

前端 未结 5 1374
盖世英雄少女心
盖世英雄少女心 2020-12-03 06:27

Is it possible in iOS 6 to know when a UIStoryboardSegue has finished its transition? Like when i add a UIStoryboardSegue from UIButton

5条回答
  •  萌比男神i
    2020-12-03 07:12

    In case you don't want to use the viewDidAppear: method, you could create a custom segue. In the perform method you would use an animation for the transition, and that can have a completion block. You can add the code there after the animation is complete.

提交回复
热议问题