How to dismiss the two or more dismissModalViewController?

后端 未结 5 1162
孤城傲影
孤城傲影 2020-12-19 11:26

I need to dismiss the two modal view controllers, I know how to pop two or more view controllers

        UINavigationController* navController = self.navigat         


        
5条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-19 11:55

    Use this below code

    [[[self presentingViewController] presentingViewController]  dismissModalViewControllerAnimated:YES];
    

提交回复
热议问题