如何使用故事板在“设置”应用程序中构建表格

发布于 2025-01-06 06:08:46 字数 84 浏览 1 评论 0原文

我们想要像本机设置应用程序一样构建表。应该有一段静态单元格和一段动态单元格。

有没有办法只使用故事板而不使用 .xib 文件来做到这一点?

We want to build table like in native settings application. There should be sections of static cells and one section of dynamic cells.

Is there ways to do it just with storyboards without .xib files?

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

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

发布评论

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

评论(1

信仰 2025-01-13 06:08:47

是的,您可以使用 UITableViewController 子类和表视图中的一些静态单元格来很好地做到这一点。或多或少,您所做的就是将一些单元格放入表格视图中,并将它们连接到控制器中的插座。 这里是一个很好的指南。

Yes, you can do it nicely with a UITableViewController subclass and some static cells in the table view. More or less all you do is drop some cells into the table view and wire them up to the outlets in your controller. Here is a good guide.

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