iphone - NSArray sort and isolate -


I have an NSArray of names, I want to sort them in alphabetical order in a UITableView and separate them into sections. I am

I have a tag block, section 0 at the top. I want to solve the names aplhabetically solve. So all the part 1, B, starting with the name of all, put it in section 2, and so on.

I should be able to get the number of rows for each section by any means, and then each section of the objects

How do I do this?

You probably arrange an array of arrays, one for each letter, and store your names in the same way When you use an array for storage , there is no fast way to do that partition you are looking for. Sorting, sure, but not section-ization.


Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -