更新时间:2023-11-30 23:11:52
查看这篇文章,了解有关在表格视图中绘制网格的一些示例代码:在 UITableView 中绘制网格.这是自定义表格视图以显示多列的一种可能性.
Have a look at this post for some sample code about drawing a grid in your table view: Drawing a Grid in a UITableView. This is one possibility to customize a table view so that it shows multiple columns.
该示例使用 UILabel
对象来填充各个单元格.因此,您可能还会找到一种简单的方法使它们看起来可编辑(或在 ableView cellForRowAtIndexPath
中使用 UITextField 而不是 UILabel).
The sample uses UILabel
objects to fill the individual cells. So you might also find an easy way to make them appear editable (or use UITextField instead of UILabel in ableView cellForRowAtIndexPath
).