UILocalizedIndexedCollation for Japanese giving di

2019-01-28 03:52发布

问题:

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 expected way to adjust the ordering is, and a lot of Googling isn't revealing any answers (though I'm also not the only person having this problem). Any pointers in the right direction would be greatly appreciated.

回答1:

Well, if you look at the Table in the Music App it shows the latin "A" character up the top anyway. I suppose Apple modified the Array of the Sidebar to show the current language on top of the other one, even though they still are down the bottom.

Regardless, it's probably easier to just leave it the way it is. You'd have to edit section selection code and all.