- (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