I am trying to use a FRC with mixed language data and want to have a section index.
It seems like from the documentation you should be able to override the FRC\'s
Brent, my solution is based on FRC and I get sectioning from the fetch specifying a transient attribute on my model object that returns the section name for the object. I use UIlocalizedIndexedCollation only in the implementation of the attribute getter then I rely on the FRC implementation on the table view controller. Of course I use localizedCaseInsensitiveCompare as sorting selector on the fetch.
- (NSString *)sectionInitial {
NSInteger idx = [[UILocalizedIndexedCollation currentCollation] sectionForObject:self collationStringSelector:@selector(localeName)];
NSString *collRet = [[[UILocalizedIndexedCollation currentCollation] sectionTitles] objectAtIndex:idx];
return collRet;
}
The only drawback I have is that i can't have the # section at the end because I don't change the sorting from the DB. Everything else works well.