IOS 跨级页面返回

来源:互联网 发布:vb round函数 编辑:程序博客网 时间:2024/05/19 11:45

方法一:

[self.navigationController popViewControlleranimated:YES]; 

方法二:

[self.navigationController popToViewController:[self.navigationController.viewControllers objectAtIndex:你父页面的位置] animated:YES];


方法三:

如果你说的父页面是根基视图的话也可以这样:

[self.navigationController popToRootViewControllerAnimated:YES] 
0 0