【问题标题】:question about navigationController and pvc关于navigationController和pvc的问题
【发布时间】:2010-06-03 22:44:38
【问题描述】:
- (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];

}

在我的表格视图中,当单击一个单元格时,执行上面的代码会推送一个新视图,并且项目(地址、电话等)在被触摸时不执行任何操作。

如何做到这一点,以便在触摸地址时启动 Google 地图 如果触摸电话号码,则拨打电话

【问题讨论】:

  • 感谢您的链接,但我遇到了比 URL 方案更基本的问题。如何从显示的 ABPersonViewController 中获取数据。屏幕显示电话号码、地址、电子邮件等,但我如何实际检索该数据并将其存储在 NSString 或 NSURL 等中

标签: iphone-sdk-3.0 uinavigationcontroller addressbook


【解决方案1】:
猜你喜欢
  • 1970-01-01
  • 2018-11-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多