- (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];
}
在我的tableview中,当单击一个单元格时,执行上面的代码,按下新视图,触摸时项目(地址,电话等)不执行任何操作。
如何制作,以便在触摸地址时启动Google地图 如果触摸了电话号码,则会拨打电话