Go Back   MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Aug 22, 2010, 08:36 PM   #1
Stratoukos
macrumors member
 
Join Date: Jul 2008
UILocalizedIndexedCollation isn't localized

I am trying to display a list of names in an indexed table view. Since I can't know the users' localization settings, I tried to use UILocalizedIndexedCollation.

The problem is that no matter what the language/regional settings are set to, the array returned by UILocalizedIndexedCollation always contains the english letters A-Z plus the # symbol. I tried French, German and Greek but I always got back the same array.

I am using the Window-based app template with the following code added in the application:didFinishLaunchingWithOptions: method.
Code:
NSArray *arr = [[UILocalizedIndexedCollation currentCollation] sectionIndexTitles];
NSLog(@"%@", arr);
I am running this on the iPhone Simulator with base SDK 4.0.

Is this a problem with the simulator, Apple's APIs or am I doing something wrong?

Thanks.
Stratoukos is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
iOS Update isn't Notifying Me And isn't Giving Me Red Badge on Settings App help? Dan50 iPhone Tips, Help and Troubleshooting 10 Apr 23, 2014 02:34 AM
Please help. ML isn't working right for me karbowaboshots OS X 1 Feb 12, 2013 06:31 PM
Abbreivating long localized strings? samdev iPhone/iPad Programming 5 Aug 28, 2012 06:05 PM
Creating a localized table index on the fly idelovski iPhone/iPad Programming 5 Jul 19, 2012 08:25 PM
I hope these kernel panics are localized to my retina macbook pro bryanl MacBook Pro 10 Jun 17, 2012 08:07 PM

Forum Jump

All times are GMT -5. The time now is 09:15 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC