Questions tagged [uilocalizedcollation]

24 questions
14
votes
4 answers

NSFetchedResultsController v.s. UILocalizedIndexedCollation

I am trying to use a FRC with mixed language data and want to have a section index. It seems like from the documentation you should be able to override the FRC's - (NSString *)sectionIndexTitleForSectionName:(NSString *)sectionName - (NSArray…
5
votes
1 answer

UILocalizedIndexedCollation for Japanese giving different ordering to contacts/music apps

UILocalizedIndexedCollation seems to returning a different result on a Japanese iOS device than that seen in the built in Contacts / Music apps. Note that this isn't the usual question about Japanese not displaying at all in the index. I'm getting…
JosephH
  • 37,173
  • 19
  • 130
  • 154
4
votes
0 answers

Can UILocalizedIndexedCollation be changed without changing the device language?

I'm using UILocalizedIndexedCollation to index the cells on a UITableView. The problem is that my app has a language system that is independent from the device. For example, the app language can be Chinese while the device is still in English. Is…
rahzark
  • 494
  • 1
  • 4
  • 13
2
votes
0 answers

Sort Chinese contacts like in Contact app

I am making an iOS app with contacts and I want to sort my contacts the same way as in the iPhone Contacts app. What I mean is that if the contact is 试命名, (which according to Google Translate translates to Test Name) this is sorted under letter S…
Banana
  • 4,010
  • 9
  • 33
  • 49
2
votes
1 answer

UILocalizedIndexedCollation with array of strings

uniqueOrganizationsArray is of [String] type. private let collation = UILocalizedIndexedCollation.currentCollation() as UILocalizedIndexedCollation private var sections: [[String]] = [] let selector: Selector = "" sections =…
Shmidt
  • 16,436
  • 18
  • 88
  • 136
2
votes
0 answers

UILocalizedIndexedCollation with a different locale

I know this is a long shot but does anyone know if its possible to use UILocalizedIndexedCollation with a locale thats not the device locale? i.e. a phone set to Chinese wants to view my app in english - oddly this is a real (and common) request…
deanWombourne
  • 38,189
  • 13
  • 98
  • 110
2
votes
0 answers

UILocalizedIndexedCollation doesn't work for non-english / chinese indexes

I created a table view with sections using the UILocalizedIndexedCollation (supports english, chinese characters in app). This is working perfectly in iOS6. Now in iOS7 and iOS7.1, this feature is not working. Behaviour: Index created is different…
DarkKnight
  • 766
  • 1
  • 8
  • 20
2
votes
2 answers

NSFetchedResultsController with indexed UITableViewController and UILocalizedIndexedCollation

I have a table that uses an NSFetchedResultsController. This gets me an index with the headers that are present - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView { return [[_fetchedResultsController sections]…
2
votes
1 answer

How to sort Address Book entries in iOS per section

Im trying to implement UILocalizedIndexCollection as seen on http://developer.apple.com/library/ios/#documentation/iPhone/Reference/UILocalizedIndexedCollation_Class/UILocalizedIndexedCollation.html I get my address book after obtaining permission…
jfisk
  • 6,125
  • 20
  • 77
  • 113
1
vote
1 answer

Getting error "unrecognized selector sent to instance" while using UILocalizedIndexedCollation to create tableView section Indexes in Swift 4.2

I'm trying to build an app modeled off of iPhone's Contacts app. In that process that I'm trying to put section indexes down the right side of my tableView of contacts. Apple's doc Table View Programming Guide for iOS recommends using…
Mr.Green
  • 25
  • 5
1
vote
2 answers

Swift 2.2 string literal selector

Before the update I this code worked fine: var alphabetizedArray = [[Person]]() let collation = UILocalizedIndexedCollation() for person : Person in ContactsManager.sharedManager.contactList { var index = 0 if…
Vitalii Vashchenko
  • 1,777
  • 1
  • 13
  • 23
1
vote
0 answers

Does iOS consider the UI is for LTR languages even if the localization development language is RTL for example arabic?

I have a legacy iOS application designed using nib files and the UI alignment of the application is designed for arabic (Right-to-Left), then I try to add English localization to the nib files I do the following I added "Localizations" key the…
Abdelrahman
  • 997
  • 2
  • 10
  • 24
1
vote
1 answer

UILocalizedIndexedCollation UITableView Indexed List Sort

I'm creating a UITableView with a list of the users contacts. I've successfully imported the list of contacts and am storing them within an array as a dictionary containing each contact's forename, last name & ID reference. I'm trying to implement…
dgee4
  • 381
  • 3
  • 16
1
vote
0 answers

NSFetchedResultsController and UILocalizedIndexCollation

I want to populate a UITableView with help from a NSFetchedResultsController. I want the table view to have sections for the first letter in the title of the entity. The table view should also have an index list on the right. This is what my entity…
1
vote
0 answers

UILocalizedIndexedCollation issue: getting same results for each section

I have an array: NSArray *nameArray = [NSArray arrayWithObjects: //A @"Alpha",@"Ar",@"Ax", //B @"B", ... nil]; In my viewDidLoad I do the following: …
rkh
  • 841
  • 12
  • 29
1
2