int index = (int)[[self.navigationController viewControllers]indexOfObject:self];
(index 本页面的标记,向前跳转的个数进行减少)
[self.navigationController popToViewController:[self.navigationController.viewControllers objectAtIndex:index-2] animated:YES];
int index = (int)[[self.navigationController viewControllers]indexOfObject:self];
(index 本页面的标记,向前跳转的个数进行减少)
[self.navigationController popToViewController:[self.navigationController.viewControllers objectAtIndex:index-2] animated:YES];
本文标题:2021-12-14 ios 返回上n级页面
本文链接:https://www.haomeiwen.com/subject/pntyfrtx.html
网友评论