如何使用故事板在“设置”应用程序中构建表格
我们想要像本机设置应用程序一样构建表。应该有一段静态单元格和一段动态单元格。
有没有办法只使用故事板而不使用 .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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的,您可以使用 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.