User behavior for iphone addressbook ui controller

Is there a way to configure ABPeoplePickerNavigationController and allow the user to select multiple contacts without going into details? I can click the contacts on the array when the user selects them, but there is no way to return feedback to the audience so that he selects the contacts that he clicked (or deselect them on the second click). I do not want to roll back my AB just for this simple function. As a workaround, can I display a custom view over the Iphone AB UI?

+6
objective-c iphone addressbook
source share
1 answer

you can use abcontact class.

NSArray *collection = (aTableView == tableView) ? self.contacts : self.filteredArray; ABContact *contact = [collection objectAtIndex:indexPath.row]; cell.textLabel.text = contact.contactName; cell.detailTextLabel.text=contact.phonenumbers; cell.selectionStyle=UITableViewCellSelectionStyleGray; 

and in the didselect line do the following:

 - (void)tableView:(UITableView *)aTableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { NSArray *collection = (aTableView == self.tableView) ? self.contacts : self.filteredArray; ABContact *contact = [collection objectAtIndex:indexPath.row]; } 
+1
source share

All Articles