iPhone - Detect the end of the animation

后端 未结 4 906
走了就别回头了
走了就别回头了 2021-01-21 05:21

How can I detect the end of the animation of a modal view (when I do a dismiss)? (I\'m talking about MFMailComposeViewController which is not created by myself...)

Thank

4条回答
  •  旧巷少年郎
    2021-01-21 05:56

    Your modal view controller has a -viewDidDisappear: method that is automatically invoked whenever the view is removed from the screen. You can override this method in your modal view controller to do whatever you like.

    Also, you may want to consider implementing the -viewDidAppear: method in the view controller whose view gets revealed by your modal view disappearing.

提交回复
热议问题