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.
我的应用程序中有 Three20 的午餐视图。loginScreen 现在是一个模型视图,只有在登录正确时才会禁用。
现在我有一个关于屏幕,登录屏幕上有一个按钮。
但是如何在模态视图上使用模型视图?
当您在登录屏幕中创建 about 屏幕按钮时,将其设置为 IBOutlet 并确保将其连接到调用您的 about 视图的方法。然后,您可以在视图堆栈 [loginscreen.view addSubview:aboutscreenView] 顶部显示您的关于屏幕,完成后,从堆栈中删除 aboutscreenView。当用户登录时,您可以删除模式视图。