ChatViewController *vc = [[ChatViewController alloc] init];
//先pop再push
NSMutableArray *arrView = [NSMutableArray arrayWithArray:self.navigationController.viewControllers];
int index = (int)[arrView indexOfObject:self];
[arrView removeObjectAtIndex:index];
[arrView addObject:vc];
[self.navigationController setViewControllers:arrView animated:YES];
先pop再push,界面出不来
最新推荐文章于 2022-04-22 08:29:01 发布