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,界面出不来
最新推荐文章于 2024-10-21 09:51:30 发布
本文详细介绍了SwiftUI在iOS开发中的应用,包括如何使用SwiftUI构建用户界面,以及如何利用其响应式编程模型来提高开发效率。文章还探讨了SwiftUI与传统UIKit的区别,以及SwiftUI如何简化iOS应用程序的开发流程。
1352

被折叠的 条评论
为什么被折叠?



