Non US characters in section headers for a UITableView
Posted
by epatel
on Stack Overflow
See other posts from Stack Overflow
or by epatel
Published on 2010-01-30T12:26:00Z
Indexed on
2010/04/17
20:13 UTC
Read the original article
Hit count: 221
I have added a section list for a simple Core Data iPhone app.
I followed this so question to create it - How to use the first character as a section name but my list also contain items starting with characters outside A-Z, specially Å,Ä and Ö used here in Sweden.
The problem now is that when the table view shows the section list the three last characters are drawn wrong. See image below
if ([letter isEqual:@"Å"] ||
[letter isEqual:@"Ä"] ||
[letter isEqual:@"Ö"])
letter = @"Z";
Someone that have figured this one out?
And while I'm at it... 'Å', 'Ä' and 'Ö' should be sorted in that order but are sorted as 'Ä', 'Å' and 'Ö' by Core Data NSSortDescriptor
. I have tried to set set the selector to localizedCaseInsensitiveCompare:
but that gives a out of order section name 'Ä. Objects must be sorted by section name'
error. Seen that too?
© Stack Overflow or respective owner