iphone - NSFetchedResultsController sectionIndexTitles wrong not english letters -
i have data base of artists russian names on russian language.
following method show correct russian letter
- (nsstring *)tableview:(uitableview *)tableview titleforheaderinsection:(nsinteger)section { id <nsfetchedresultssectioninfo> sectioninfo = [[self.fetchedresultscontroller sections] objectatindex:section]; return [sectioninfo name]; } but when want show index line:
- (nsarray *)sectionindextitlesfortableview:(uitableview *)tableview { return [self.fetchedresultscontroller sectionindextitles]; } section letters "?" how fix this?
need subclass nsfetchedresultscontroller override - (nsstring *)sectionindextitleforsectionname:(nsstring *)sectionname { //or substring return sectionname; }
Comments
Post a Comment