iPad SplitView 示例,其中为根控制器指定了 .xib 文件?

发布于 2024-08-29 11:19:18 字数 59 浏览 5 评论 0原文

是否可以为 iPad 的 splitview 的 RootController 指定一个 xib 文件?

Is it possible to specify a xib file for the RootController of an iPad's splitview?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

君勿笑 2024-09-05 11:19:18

打开随您的项目自动生成的 MainWindow-iPad.xib。您应该能够展开 SplitViewController 以显示其中包含的 viewController。您会注意到“详细信息”一侧显示了有关“由 DetailViewController.xib 加载”的内容。您必须单击 RootViewController 图标并指定笔尖名称并在 Interface Builder 中进行必要的连接。

Open the MainWindow-iPad.xib that is autogenerated with your project. You should be able to expand the SplitViewController to display the viewControllers that are housed in it. You'll notice that the Detail side says something about "Loaded by DetailViewController.xib". You'll have to click the RootViewController icon and specify a nib name and make the necessary connections in Interface Builder.

梦回旧景 2024-09-05 11:19:18

我确信您已经找到了答案,但是对于正在阅读本文并想要一个好的源代码的人来说,Apple 示例代码“MultipleDetailView”使用 SplitView,该 SplitView 会转到 RootController 的新笔尖...只需使用它作为指南!

I'm sure you found an answer already, but for folks who are reading this and want a good source, the Apple Sample COde "MultipleDetailView" uses a SplitView that goes to new nibs for the RootController...just use that as a guide!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文