Take the 2-minute tour ×

Any recommendations on what UIView to use on the iPhone to create a listed sorted alphabetically with a vertical scrollbar that has letter on it, similar to the Contacts application or Friends in the Facebook iPhone app?

Either a three20 view or a stock UIView from UIKit will work...


share|improve this question
add comment

1 Answer

up vote 6 down vote accepted

If you're looking for a list like in the Contacts application, this is just a standard UITableView afaik.

You can use this UITableViewDelegate method and return an array that will be displayed in the index list to the right:

 - (NSArray *)sectionIndexTitlesForTableView:(UITableView *)tableView

You can also use UITableViewCellStyleValue2 to get the bold/regular text style the contacts app uses.

Documentation: UITableViewDataSource Protocol Reference

share|improve this answer
add comment

Your Answer


