dismiss modalviewcontroller from another modalviewcontroller

后端 未结 6 1710
天涯浪人
天涯浪人 2020-12-06 08:15

I am presenting a modalviewcontroller from another modalviewcontroller. When I dismiss the second modalviewcontroller both the first and second modalviewcontroller should ge

6条回答
  •  醉酒成梦
    2020-12-06 08:51

    To clarify even further, what you will probably need is something like this:

    [self.parentViewController.parentViewController dismissModalViewControllerAnimated:YES];
    

提交回复
热议问题