iPhone 上的自定义 UITableView 索引标头
我见过一些应用程序采用 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可能想尝试实现
tableView:viewForHeaderInSection:
方法。You might want to try implementing
tableView:viewForHeaderInSection:
method in yourUITableView
delegate.