具有多个 PopOver 的 iPad 应用程序

发布于 2024-10-02 14:30:16 字数 208 浏览 1 评论 0原文

更多的是关于良好应用程序设计的“最佳实践”问题。我有一个应用程序,它有多个弹出窗口控制器,每个控制器都有不同的内容。我的第一直觉是为每个弹出窗口的内容创建一个新的 TableViewController。

这是处理事情的最佳方式吗?我想知道是否可以或更整洁地处理一个 TableViewController 中所有这些内容的显示,并根据弹出窗口呈现不同的内容数组?

谢谢

More of a "best practice" question with regards to good application design. I have an application that has a number of popover controllers, each with different content. My first instinct was to create a new TableViewController for the content of each popover.

Is this the best way to go about things? I was wondering if it was possible or more tidy to handle the display of all this content within one TableViewController, and present different arrays of content depending on the popover?

Thanks

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

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

发布评论

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

评论(1

人海汹涌 2024-10-09 14:30:16

除非您的委托/数据源代码在所有表之间非常相似,否则我建议将类分开。如果您想细分这些视图之一或添加其他弹出窗口,它将使您的代码将来更容易修改。

Unless your delegate/data source code is very similar between all tables I would recommend keeping the classes apart. It will make your code more modifiable in the future if you want to sub-split out one of these views or add additional popovers.

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