UITableViewCellStyleValue2 编辑文本 - 填充表单,如
我需要创建一个表单,以便用户可以编辑表格的所有单元格(大约 20 个)。
我可以用 UITableViewCellStyleValue2 来做吗?如果是这样,怎么办?
或者我需要创建 UITableViewCell 的子类吗?
就 arquitect 而言,也许创建一个子类更好,但无论如何,我需要编辑表、textlabel.text 属性。
最好的办法是什么?我该怎么做呢?
谢谢,
RL
I need to create a form so that the user can edit all cells of the table (about 20).
Can I do it with UITableViewCellStyleValue2? If so, how?
Or do I need to create a subclass of UITableViewCell?
In terms of arquitect, maybe it's better to create a subclass, but anyway, i'll need to edit the table, the textlabel.text property.
What's the best way? And how can I do it?
Thanks,
RL
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我建议将您自己的视图添加到单元格的 contentView 中,如下所示:
这只是一个演示,但您可以看到需要在哪里扩展它以支持其他单元格等。
I recommend adding your own views to the cell's contentView, like so:
This is just a demonstration but you can see where you need to extend it to support additional cells, etc.