How to dismiss a view controller opened with presentModalViewController:

前端 未结 3 697
迷失自我
迷失自我 2021-02-05 10:25

I presented a view controller using presentModalViewController:, now how to close/dismiss it?

3条回答
  •  后悔当初
    2021-02-05 10:57

    For iOS6 use this code

    [self dismissViewControllerAnimated:YES completion:Nil];
    

    instead of

    [self dismissModalViewControllerAnimated:YES];
    

    This may help you.

提交回复
热议问题