Hi,
I have had no success in doing this.
I only get one index entry, which is 'S', and selecting it goes to the start of the list.
Can anyone help ?
self.tableViewModel = [SCTableViewModel modelWithTableView:self.tableView];
self.tableViewModel.autoSortSections = YES;
self.tableViewModel.autoGenerateSectionIndexTitles = YES;
self.tableViewModel.modelActions.sectionHeaderTitleForItem = ^NSString*(SCArrayOfItemsModel *itemsModel, NSObject *item, NSUInteger itemIndex)
{
NSString *sectionTitle = (NSString *)item;
return [[sectionTitle substringToIndex:1] uppercaseStringWithLocale:[NSLocale systemLocale]];
};