iOS开发更改navigationController的rootViewController

NSMutableArray *controllers = [NSMutableArray arrayWithArray:self.navigationController.viewControllers];
controllers[0] = [[RegisterViewController alloc] init];
[self.navigationController setViewControllers:controllers]; 

你可能感兴趣的:(iOS开发更改navigationController的rootViewController)