且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在 iphone 应用程序中自定义 UITableView 中的部分索引

更新时间:2022-12-11 19:49:13

它看起来不像是标准的索引视图是可定制的.

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.