iOS开发更改navigationController的root
2019-09-25 本文已影响0人
第一梯队利群
NSMutableArray *controllers = [NSMutableArray arrayWithArray:self.navigationController.viewControllers];
controllers[0] = [[RegisterViewController alloc] init];
[self.navigationController setViewControllers:controllers];