i want to index my contact with alphabets but i am not getting the correct result, suppose if i click a, b or c in each section it showing all of the contacts ? how can i make sure that contact name starts with A will be indexed only in A section. and others in there respective sections, thanks in advance.
-(NSInteger)tableView:(UITableView *)aTableView numberOfRowsInSection:(NSInteger)section
{
// Normal table
if (aTableView == tableView)
return self.contacts.count;
}
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
// return self.contacts.count;
return self.contacts.count;
}
Iam using Abcontact class.
also attached image for more clarification.