I would like to create a table in iOS that have some rows and columns. We also have an option to add amounts to the table. A screenshot of the sample table is posted below:
![enter image description here](https://i.stack.imgur.com/ZhdDx.jpg)
单元格需要可编辑。有没有办法使用 iOS 中默认的 UITableView 来实现这一点。或者使用按钮或文本字段等创建它是否很好?
这不是一个简单的解决方案,但您可以使用旋转(水平)UITableView
就像 Pulse 应用程序一样,位于表格视图(垂直)的每个单元格内。仅使用标签可以轻松管理,但如果您计划处理选择行、排序等事件,“excel”外观可能会更困难。
这是有关如何使用水平表的两部分教程(http://www.raywenderlich.com/):
part 1 http://www.raywenderlich.com/4680/how-to-make-an-interface-with-horizontal-tables-like-the-pulse-news-app-part-1 - part 2 http://www.raywenderlich.com/4723/how-to-make-an-interface-with-horizontal-tables-like-the-pulse-news-app-part-2
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)