UILocalizedIndexedCollation, no Swedish localization

In my latest app, Gasmacken I tried to use UILocalizedIndexedCollation (from example TableViewSuite example 3) for creating a localized version of the A-Z list (A-Ö in swedish) on the right side in a table view. But to my surprise I could not get any difference in table view running in Swedish or English. The list was created in english locale. Apples example TableViewSuite uses UILocalizedIndexedCollation and does not work either.

TableViewSuite example 3

TableViewSuite example 3 running with swedish locale, no A-Ö

I trashed the use of UILocalizedIndexedCollation and created the list manually, without localization support it only supports A-Ö sorting now. Should I classify this as a bug and report it to Apple?

Screenshot 2009.09.25 22.40.18

This is what I wanted from UILocalizedIndexedCollation

Does it support any other locales, Japanese, German, French, Chinese etc? Not Swedish as I thought.

Excerpt from documentation of UILocalizedIndexedCollation.

The UILocalizedIndexedCollation class is a convenience for organizing, sorting, and localizing the data for a table view that has a section index. The table view’s data source then uses the collation object to provide the table view with input for section titles and section index titles.

Table views with section indexes are ideal for displaying and facilitating the access of data composed of many items organized by a sequential ordering scheme such as the alphabet. Users tap an index title to jump to the corresponding section. The initial table view of the Phone/Contacts application on the iPhone is an example. Note that the section titles can be different than the titles of the index.

  • Digg
  • del.icio.us
  • Facebook
  • StumbleUpon
  • Google Bookmarks
  • Reddit
This entry was posted in Development, iphone, Mac and tagged , , , , , . Bookmark the permalink.

7 Responses to UILocalizedIndexedCollation, no Swedish localization

  1. Tom Thomas says:

    Check the blow link for the country code.

    http://en.wikipedia.org/wiki/List_of_ISO_639-1_codes

    If u want to a swedish localisation, then u need to specify the localization folder name as ‘sv’ not ‘se’

  2. admin says:

    Please give me an example.
    I can’t figure out any way to provide a language (or country code) to UILocalizedIndexedCollation-class. This is handled by the [UILocalizedIndexedCollation currentCollation]; method.

  3. grayowl says:

    add property to project’s target ‘info’
    that ‘Localized resources can be mixed’ = YES

    how to add ? just click right mouse click, then You can see ‘Add row’ number.
    :)

  4. grayowl says:

    ‘Add row’ menu :)

  5. admin says:

    Is it that easy!? Got to test it.
    How come it took 2 years before anyone told me this. :-)

  6. grayowl says:

    is it work? :)

  7. kevie says:

    Thanks , is work for me !

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>