美文网首页
iOS返回上上上一个viewcontroller

iOS返回上上上一个viewcontroller

作者: zhengelababy | 来源:发表于2017-04-13 11:50 被阅读123次

很简单,就一句话:

[self.presentingViewController.presentingViewController.presentingViewController dismissViewControllerAnimated:YES completion:nil];

我的记法是⚠️:“返回上上上一个viewcontroller”里有三个“上”,“self.”后面的“presentingViewController”就写几个!

相关文章

网友评论

      本文标题:iOS返回上上上一个viewcontroller

      本文链接:https://www.haomeiwen.com/subject/solbattx.html