UISplitViewController:为什么我不应该将它呈现在导航或标签栏界面内?
苹果公司:“你永远不应该在导航或标签栏界面内呈现分割视图。”
他们不说为什么,只说“不应该”。如果我这样做会发生什么?我可以想象出很多我想要的好用例!
From Apple: "You should never present a split view inside of a navigation or tab bar interface."
They don't say why, and they only say "should" not. What would happen if I do it? I can imagine so many good use cases where I would want to!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您的应用程序可能会崩溃。 UISplitViewController 被设计为 VC 堆栈中的根视图控制器。
那么问题:
分割视图控制器必须是根视图控制器
另外,如上所述在类参考中:
Your application may crash. The UISplitViewController was designed to be the root view controller in the VC stack.
SO Question:
Split view controller must be root view controller
Also, as stated in the Class Reference:
我写了这个问题这是相关的。正如埃文指出的那样,通常你只需要接受苹果的要求即可。我试图绕过他们的限制;它非常失败。如果你做了苹果不希望你做的事情,UISplitViewController 就会变得非常脆弱。
I wrote this question which is related. As Evan notes, usually you just have to roll with Apple's damands. I tried to work around their restrictions; it failed horribly. UISplitViewController is extremely fragile if you do anything Apple don't want you to.