UITableView index

Posted by Daniel Vela on May 22, 2011

You can generate the index of the tables with the class UIlocalizedIndexedCollation (UIKit).

Generates an index from A to Z, including the # symbol.

To add the symbol search, add the predefined constant UITableViewIndexSearch to the array.

Finally, to move the table in the position of the browser, use the following code in the function sectionForSectionIndexTitle.

if([title isEqualToString:UITableViewIndexSearch]){  
    [self.tableView setContentOffset:CGPointZero animated:NO];  

table index