很简单,就一句话:
[self.presentingViewController.presentingViewController.presentingViewController dismissViewControllerAnimated:YES completion:nil];
我的记法是⚠️:“返回上上上一个viewcontroller”里有三个“上”,“self.”后面的“presentingViewController”就写几个!
很简单,就一句话:
[self.presentingViewController.presentingViewController.presentingViewController dismissViewControllerAnimated:YES completion:nil];
我的记法是⚠️:“返回上上上一个viewcontroller”里有三个“上”,“self.”后面的“presentingViewController”就写几个!
本文标题:iOS返回上上上一个viewcontroller
本文链接:https://www.haomeiwen.com/subject/solbattx.html
网友评论