ios - 点击UITableView右侧索引栏无法自动跳转,请问怎么破?

【字号: 日期:2023-11-13浏览:48作者:雯心

问题描述

如下图,当我点击A-Z任何一个字母的时候都无法跳转,ios - 点击UITableView右侧索引栏无法自动跳转,请问怎么破?

也实现了下面的方法:

(NSArray )sectionIndexTitlesForTableView:(UITableView )tableView/{

/ return self.sectionTitles;/}请问大神怎么破?

问题解答

回答1:

索引栏点击方法是这个:

-(NSInteger)tableView:(UITableView *)tableView sectionForSectionIndexTitle:(NSString *)title atIndex:(NSInteger)index

相关文章: