iPhone 上的自定义 UITableView 索引标头

发布于 2024-08-05 18:24:02 字数 161 浏览 3 评论 0原文

我见过一些应用程序采用 UITableView 索引标头(即 iPod 应用程序中分隔以 A、B 等开头的歌曲的东西)并将自己的自定义图像作为背景。此类应用程序包括 myStarbucks 应用程序和电视上有什么节目?应用程序。我浏览了一些文档,似乎没有特定的变量来编辑此索引标题视图的背景。怎样才能改变呢?

I've seen apps that take the UITableView index header (i.e. the thing in the iPod application that separates songs starting in A, B, etc.) and put their own custom image as the background. Such apps are the myStarbucks app and the What's on TV? app. I've looked a little bit through the documentation and there doesn't seem to be a specific variable to edit the background of this index-header view. How can it be changed?

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

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

发布评论

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

评论(1

南…巷孤猫 2024-08-12 18:24:02

您可能想尝试实现 tableView:viewForHeaderInSection: 方法。

You might want to try implementing tableView:viewForHeaderInSection: method in your UITableView delegate.

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