Reputation: 417
I have a sorted array of strings. I want to group them using tableview section according to first letter similar to iPhone contact.
I am new to iOS can any one help me to do this, The array is retrieving from server.
and also there is a search option for table view
Upvotes: 1
Views: 105
Reputation: 395
Please check this given below link
http://iamthewalr.us/blog/2009/12/uisearchdisplaycontroller-and-uilocalizedindexedcollation/
Upvotes: 0
Reputation: 2548
If I understood your question correctly, you want to group and index the items alphabetically? There is a system class to do that, called UILocalizedIndexedCollation.
Here is a nice tutorial for it: http://benedictcohen.co.uk/blog/archives/230
Upvotes: 1