What's the UITableView index magnifying glass character?

Returning UITableViewIndexSearch as section index title (same as @"{search}") also works.

In Swift you would use UITableView.indexSearch.


@"{search}" FTW.

Return that title and it's magically replaced by the correct glyph.


In tableView:sectionForSectionIndexTitle:AtIndex: explicitly scroll to the top and return NSNotFound:

- (NSInteger) tableView:(UITableView *)tableView
sectionForSectionIndexTitle:(NSString *)title
                atIndex:(NSInteger)index {
    if (index == 0) {
        [tableView setContentOffset:CGPointZero animated:NO];
        return NSNotFound;
    }
    return index;
}