UIView notification when modal UIImagePickerController is dismissed?

后端 未结 3 1624
天涯浪人
天涯浪人 2021-01-27 00:50

Is there a way to call code when a modal view is finished dismissing?

EDIT:

I\'m sorry, I didn\'t clarify earlier. I\'m trying to dismiss a UIImagePickerControll

3条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-27 01:36

    You have to dismiss the modalViewController somehow right? Either a UIButton, or by code:

    - (void)dismissModalViewControllerAnimated:(BOOL)animated
    

    In the IBAction (e.g. delegate) for the UIButton or in the method above, call whatever code you want.

提交回复
热议问题