Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想为我的应用程序实施授权。如果授权函数返回是,我想切换我的主视图控制器并将我的第二个视图控制器分配为初始视图控制器。函数返回 yes 后,我不想再看到授权视图。我应该尝试什么?
是否喜欢transitionFromViewController?
只需加载主视图控制器,如果您需要验证在视图控制器上显示模式视图
[self presentModalViewController:myLoginViewController animated:NO];
或者
[self presentViewController:myLogingViewController animated:NO completion:NULL];