Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我怎样才能创建一个UITablveVIew这样的?
UITablveVIew
UITableViewCell
UIButton
UILable
注意:要实现这种方式,UITableView重要的是要知道单元格的格式。
UITableView
你子类UITableViewCell。我自己做了,这里有一些关于这个主题的很棒的链接:
实现自定义、可重用 UITableViewCells 的最佳方式
使用 IB 自定义 UITableViewCell
IB方法非常简单。
尝试使用自定义单元格进行此设计,并使用表格视图编辑样式在表格中添加新行。
在此处查看示例项目
表视图示例 1 表视图示例 2
希望这会帮助你