iPhone TableView 中部分的左侧区域

发布于 2024-09-24 15:01:25 字数 104 浏览 0 评论 0原文

我有一个部分想要自定义 TableView 部分的左侧区域 - 有点像 viewForHeaderInSection。

我曾考虑过使用单元格来代替该部分,​​但这会涉及很多细节。

I have a section where I would like to customize the left area of a section a TableView - a bit like viewForHeaderInSection.

I have thought at using a cell for the section instead, but it would be a lot of nitty-gritty.

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

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

发布评论

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

评论(2

海螺姑娘 2024-10-01 15:01:25

如果我正确理解您的问题,您想自定义 UITableView 中某些或每个单元格的左侧吗?然后您需要创建自己的自定义表格视图单元格。我通常在 Interface Builder 中制作这些单元格;这篇帖子帮助了我。另请参阅 自定义单元格 Apple iOS 表格视图编程指南

If I understand your question correctly, you want to customise the left-hand-side of some, or every cell in a UITableView? Then you need to make create your own custom table view cells. I normally make these cells in Interface Builder; this post helped me out. See also the Customizing Cells section of Apple's Table View Programming Guide for iOS.

江城子 2024-10-01 15:01:25

我读到你的问题意味着一堆单元格的左侧有一个自定义元素。我知道的唯一方法是使用您所描述的单元格,然后在其中有一个左视图和一个表格视图。

I read your question to mean that there is one custom element to the left of a bunch of cells. The only way I know of offhand is to use a cell as you describe and then have a left view and a tableview inside of it.

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