iPhone 分组表视图单元格重用

发布于 2024-08-28 16:34:59 字数 194 浏览 3 评论 0原文

我的 iPhone 程序经常包含分组表视图。典型用途可能是用于设置。这些表视图中的行数大约为 2 到 20。单元格通常没有太多的一致性。

我应该尝试重复使用这些细胞吗?如果是这样,单元需要有多少通用性才能获得共享标识符?例如,考虑两个大小相同的单元格,其中一个包含标签和文本输入字段;另一个包含两个标签和一个滑块。或者这根本不值得打扰?

谢谢

My iPhone programs frequently contain grouped table views. A typical use might be for settings. The number of rows in these table views can run anywhere from roughly 2 to 20. The cells typically don't have a lot of uniformity.

Should I be trying to reuse the cells? If so, how much commonality do cells need to have to get a shared identifier? For example, consider two cells with the same size, with one containing a label and a text input field; the other containing two labels and a slider. Or is this just not worth the bother?

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

顾挽 2024-09-04 16:34:59

如果正确释放所有单元格,则无需重复使用单元格,因为所有单元格都是不同的。

If you release all your cells properly, you don't need to reuse cells because all your cells are different.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文