dismiss modalviewcontroller from another modalviewcontroller

后端 未结 6 1699
天涯浪人
天涯浪人 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 09:04

    Try [self.parentViewController dismissModalViewControllerAnimated:YES];

    This will dismiss both modal view controllers

提交回复
热议问题