您可以在 UINavigationController 中推送您的登录屏幕,并使用此控制器推送您的附加登录屏幕。
// create and add your view controller to a navigation Controller
LoginController *loginController = [[LoginController alloc] init];
UINavigationController *navigationController = [UINavigationController alloc] initWithRootController:loginController];
// present it modally
[self presentViewController:navigationController animated:YES];
一旦您的用户完成了最后一个登录后屏幕,在 navigationController 上调用 dismissViewController 将返回您的主屏幕。
[self.navigationController dismissViewControllerAnimated:YES];