dismiss modalviewcontroller from another modalviewcontroller

后端 未结 6 1690
天涯浪人
天涯浪人 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:53

    i just found it's answer, may be it will help somebody we need just one line of code

    [self.presentingViewController.presentingViewController dismissModalViewControllerAnimated:YES];
    

提交回复
热议问题