可以在 iPhone 上使用 SplitViewControllers 吗?

Can SplitViewControllers be used on an iPhone?

我正在为 Swift 中的 iPhone 构建应用程序。

我希望我的应用程序顶部的一小部分成为用户区,屏幕的其余部分是 view/page 用户当前正在查看的内容。

这让我觉得我需要使用 UISplitViewController,但我读到的关于 UISplitViewController 的所有内容都告诉我它们只能在 iPad 上使用。

这是正确的吗?

如果是这种情况,有人可以告诉我如何在 iPhone 上创建我想要的效果(在 Swift 中编程会很棒)。很抱歉问(在我看来)是一个基本问题,在网上进行了大量搜索后,我找不到关于该主题的任何明确信息。

非常感谢

docs 说:

In iOS 8 and later, you can use the UISplitViewController class on all iOS devices; in previous versions of iOS, the class is available only on iPad.

所以你可以使用,如果它至少 iOS8。