Question

I am using UILocalizedIndexedCollation in my application to return indexed tableview. My locale is set to Hebrew and on the indexed table I can see index list with both English and Hebrew letters.

The order is always the same, first English alphabet and then Hebrew alphabet. Is it possible to place Hebrew alphabet above English alphabet in the index list (same as Contacts app)?

Was it helpful?

Solution

There's no way to configure UILocalizedIndexCollation to do this. It's a common problem, it also applies to Japanese (see UILocalizedIndexedCollation for Japanese giving different ordering to contacts/music apps ).

If you want to do it, you need to reorder the results from UILocalizedIndexCollation yourself before you use them. Obviously this requires some care to make sure you change all the arrays in the same way, and further care to make sure you get things in the right order.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top