Make UITableView scrollable by index

后端 未结 3 1927
长情又很酷
长情又很酷 2020-12-13 10:44

I am trying to create a UITableView index for faster scrolling of a large UITableView, I have the index showing up on the right but when I try to s

3条回答
  •  青春惊慌失措
    2020-12-13 11:10

    You might try:

    - (NSInteger)tableView:(UITableView *)tableView sectionForSectionIndexTitle:(NSString *)title atIndex:(NSInteger)index {
        return index;
    }
    

    It's hard to tell what's wrong without the rest of your controller, but I think that should work.

提交回复
热议问题