跳轉指定的控制器

int index = (int)[[self.navigationController viewControllers]indexOfObject:self];
if (index>2) {
   [self.navigationController popToViewController:[self.navigationController.viewControllers objectAtIndex:(index-2)] animated:YES];
 }
相關文章
相關標籤/搜索