From b751138df04a91b5a5bd212b20c573875996af25 Mon Sep 17 00:00:00 2001 From: Yann Diorcet Date: Tue, 7 Aug 2012 18:45:29 +0200 Subject: [PATCH] Add alphabetical scroll bar in contacts view --- Classes/ContactsTableViewController.m | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Classes/ContactsTableViewController.m b/Classes/ContactsTableViewController.m index 1ea4084ef..4f5cd356b 100644 --- a/Classes/ContactsTableViewController.m +++ b/Classes/ContactsTableViewController.m @@ -154,6 +154,10 @@ static void sync_address_book (ABAddressBookRef addressBook, CFDictionaryRef inf #pragma mark - UITableViewDataSource Functions +- (NSArray *)sectionIndexTitlesForTableView:(UITableView *)tableView { + return [addressBookMap allKeys]; +} + - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView { return [addressBookMap count]; }