以纵向和横向打开时,UISplitView 未全屏显示
我有一个带有 1 个按钮的 UIViewController(更多)。当我单击按钮时,必须打开 uisplitview。问题是打开起来很奇怪。 我制作了一些屏幕截图来澄清问题所在。 纵向未单击按钮:
纵向单击按钮(注意黄色上部):
横向时未单击按钮:
在横向中单击按钮(注意右侧):
我缺少吗一些设置可以消除“异常”?
I have a UIViewController with 1 button (more to come). When i click a button uisplitview must open. The problem is that it opens very strange.
I made some screenshots that will clarify what is wrong.
Button not clicked in portrait:
Button clicked in portrait(notice yellow upper part):
Button not clicked in landscape:
Button clicked in landscape (notice right side):
Am i missing some settings that will remove that "anomalies"?
SplitViewController 是根视图控制器。 Apple 不鼓励您将其用作主视图控制器之外的视图控制器。
来自文档:
The SplitViewController is meant to be the root view controller. Apple discourages you from using it as a view controller other than the main view controller.
From the docs: