开发者

question about navigationController and pvc

开发者 https://www.devze.com 2023-01-02 10:05 出处:网络
- (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 th
- (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

精彩评论

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