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

Thread Tools Search this Thread Display Modes
Old Aug 22, 2010, 07:36 PM   #1
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.
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?

Stratoukos is offline   0 Reply With Quote

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 01:34 AM
Please help. ML isn't working right for me karbowaboshots OS X 1 Feb 12, 2013 05:31 PM
Abbreivating long localized strings? samdev iPhone/iPad Programming 5 Aug 28, 2012 05:05 PM
Creating a localized table index on the fly idelovski iPhone/iPad Programming 5 Jul 19, 2012 07:25 PM
I hope these kernel panics are localized to my retina macbook pro bryanl MacBook Pro 10 Jun 17, 2012 07:07 PM

Forum Jump

All times are GMT -5. The time now is 07:21 AM.

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

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