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:

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.



来源:https://stackoverflow.com/questions/11630184/uilocalizedindexedcollation-for-japanese-giving-different-ordering-to-contacts-m

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!