在iPhone应用程序中定制UITableView中的节索引
问题描述:
- 是否有人尝试自定义在UITableView中显示的默认部分索引。
- 我要修改UITableView SectionIndex的外观。 $
- 是否有可用的委托方法?
- - 如果上述问题的答案是肯定的?
- Does any one have tried to customize default section index displayed in UITableView.
- I want to modify the appearance of UITableView SectionIndex.
- Is it possible to customize it ?
- Is there any delegate methods available for this ?
- What delegate methods should I use - if above question's answer is yes?
答
看起来不像标准索引视图可定制。
It doesn't look like standard index view is customizable.
在我的应用程序中,我创建了自定义索引视图而不是标准视图。基本上所有你需要做的是跟踪触摸位置在该视图,并相应地滚动UITableView。您可能还需要添加一些视觉效果 - 更改视图的背景颜色触摸和突出显示当前部分标题。
In my application I just created custom index view instead of standard one. Basically all you need to do here is track touch position in that view and scroll UITableView accordingly. You may also need to add some visual effects - change view's background color on touch and highlight current section title.