美文网首页
iOS导航栏pop到上上级页面

iOS导航栏pop到上上级页面

作者: 相逢不晚为何匆匆 | 来源:发表于2016-05-25 15:15 被阅读2702次
//复制就能用
int index = (int)[[self.navigationController viewControllers]indexOfObject:self];
[self.navigationController popToViewController:[self.navigationController.viewControllers objectAtIndex:(index -2)] animated:YES];

相关文章

网友评论

      本文标题:iOS导航栏pop到上上级页面

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