Febin Fathah
Febin Fathah

Reputation: 417

UITableview Grouping

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

Answers (2)

Tiago Lira
Tiago Lira

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

Related Questions