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,界面出不来
最新推荐文章于 2023-05-26 15:20:22 发布