前提是,由N个视图跳转过来的。
//返回前n个
NSInteger index=[[self.navigationController viewControllers]indexOfObject:self];
[self.navigationController popToViewController:[self.navigationController.viewControllers objectAtIndex:index-n]animated:YES];
转载请注明原文地址: https://mac.8miu.com/read-498513.html