uilocalizedcollation

NSFetchedResultsController v.s. UILocalizedIndexedCollation

假如想象 提交于 2019-12-27 17:08:04
问题 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 - (NSString *)sectionIndexTitleForSectionName:(NSString *)sectionName - (NSArray *)sectionIndexTitles and then use the UILocalizedIndexedCollation to have a localized index and sections. But sadly this does not work and is not what is intended to be used :( Has anyone been able to use a FRC with UILocalizedIndexedCollation or are we

UILocalizedIndexedCollation locale different than English

两盒软妹~` 提交于 2019-12-14 04:00:03
问题 I am using Tableview with UILocalizedIndexedCollation to show the index on right side but the language on my phone is Swedish (svenska) hence I see some special characters specific to Swedish language like å ä ö after A-Z . In A-Z some of the characters are missing like Q, X etc which I believe are not there in Sweidsh locale. I am facing issue when I click say character "S" , it shows me section "R" instead of "S" even though there are entries in "S" . Also for last characters "å", "ä" it

Can UILocalizedIndexedCollation be changed without changing the device language?

末鹿安然 提交于 2019-12-11 03:45:14
问题 I'm using UILocalizedIndexedCollation to index the cells on a UITableView. The problem is that my app has a language system that is independent from the device. For example, the app language can be Chinese while the device is still in English. Is there a way to change [UILocalizedIndexedCollation currentCollation] without changing the device settings? 来源: https://stackoverflow.com/questions/16965437/can-uilocalizedindexedcollation-be-changed-without-changing-the-device-language

UILocalizedIndexedCollation for Japanese giving different ordering to contacts/music apps

久未见 提交于 2019-11-29 14:41:12
UILocalizedIndexedCollation seems to returning a different result on a Japanese iOS device than that seen in the built in Contacts / Music apps. Note that this isn't the usual question about Japanese not displaying at all in the index. I'm getting the Japanese kana section, but the order of the index is incorrect when compared to Contacts etc. Here's screens - on the left, the desired result shown in the music app with the kana names first - on the right, the result I'm getting: UILocalizedIndexedCollation doesn't appear to have any obvious way to configure it, so I'm not sure what the

UILocalizedIndexedCollation for Japanese giving different ordering to contacts/music apps

别来无恙 提交于 2019-11-28 08:08:59
问题 UILocalizedIndexedCollation seems to returning a different result on a Japanese iOS device than that seen in the built in Contacts / Music apps. Note that this isn't the usual question about Japanese not displaying at all in the index. I'm getting the Japanese kana section, but the order of the index is incorrect when compared to Contacts etc. Here's screens - on the left, the desired result shown in the music app with the kana names first - on the right, the result I'm getting:

NSFetchedResultsController v.s. UILocalizedIndexedCollation

邮差的信 提交于 2019-11-26 21:57:24
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 - (NSString *)sectionIndexTitleForSectionName:(NSString *)sectionName - (NSArray *)sectionIndexTitles and then use the UILocalizedIndexedCollation to have a localized index and sections. But sadly this does not work and is not what is intended to be used :( Has anyone been able to use a FRC with UILocalizedIndexedCollation or are we forced to use the manual sorting method mentioned in the example UITableView +