UIWindows 或 UIView
我的应用程序中需要三个不同的部分:登录屏幕、主屏幕和横向模式下的屏幕,所有这些都完全不同。我看到苹果坚持认为应用程序应该有一个窗口,所以我想问:为此最好使用什么?三扇大窗户,还是风景? 层次结构应该是什么样的?例如,我没有图层方面的经验。虽然登录面板可以在用户登录后消失,但其他两个面板必须保持不变,无论其中哪一个可见。
另外,无论您的答案是什么,新的 UIWindow 流程到底是什么样子的?如何附加它而不是第一个?他们有层次吗?等
谢谢!
I need three different sections in my app: a login screen, a main screen, and one that takes place in landscape mode, all totally different. I saw Apple insists that an app should have one window, so I'm asking: what would be best to use for this? Three big windows, or views?
And how should the hierarchy look like? I don't have experience with layers for example. And while the login panel can go away after the user gets logged in, the other two must remain the same no matter which one of them is visible.
Also, no matter what your answer is, how exactly would the new UIWindow flow look like? How do I attach it instead of the initial one? do they have layers? etc.
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
正如您所说,您只能有一个 uiwindow,因此您将需要 3 个视图,您可以使用将子视图添加到主窗口来手动添加它们,或者使用界面生成器来制作导航控制器或选项卡栏控制器等...这似乎是更好的解决方案
资源
和 uiview 请参阅 此
这会很有帮助
指南
as you have said you can only have one uiwindow so you will need 3 views that you can add them manually using add subview to your main window or use the interface builder to make navigation controllers or tab-bar controller etc... which seems a better solution
resources
and uiview see this
this will be helpful
guide