0
- (void)tableView:(UITableView *)aTableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {

/*
 When a row is selected, set the detail view controller's detail item to the item associated with the selected row.
 */
//detailViewController.detailItem = [NSString stringWithFormat:@"Row %d", indexPath.row];

ABPersonViewController *pvc = [[ABPersonViewController alloc] init];
pvc.displayedPerson = [searchArray objectAtIndex:[indexPath row]];
[[self navigationController] pushViewController:pvc animated:YES];

}

In my tableview, when a cell is clicked, the above code is executed a new view is pushed and the items (address, phone, etc) do nothing when touched.

How do I make it so that when the address is touched, Google Maps launches If the phone number is touched, the phonecall is placed

Cocoa Dev
  • 9,361
  • 31
  • 109
  • 177
  • Thanks for the link but I'm having a more basic problem than URL schemes. How do I get the data out of the ABPersonViewController that's displayed. The screen displays the phone numbers, addresses, emails, etc but how do I actually retrieve that data and store it in a NSString or NSURL, etc – Cocoa Dev Jun 04 '10 at 12:55