开发者

question about navigationController and pvc

- (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 ro开发者_JAVA百科w]];
[[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


Have a look at the following

http://developer.apple.com/iphone/library/documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/ApplicationEnvironment/ApplicationEnvironment.html#//apple_ref/doc/uid/TP40007072-CH7-SW26

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜