0
safari我想学习如何使用表格,我有我的应用程序,这是一个多视图应用程序。我可以用它载入包含数据的表格,当我点击表格项目时,我希望它载入另一个视图控制器,这不起作用(没有错误,只是没有改变),所以我决定用safari页面测试它而且这也不会做任何事情。有任何想法吗?无法打开表
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
// Navigation logic may go here. Create and push another view controller.
// SecondViewController *loadview = [[SecondViewController alloc] initWithNibName:@"SecondViewController" bundle:nil];
// ...
// Pass the selected object to the new view controller.
// [self.navigationController pushViewController:loadview animated:YES];
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"www.google.com"]];
// [loadview release];
}
感谢,认为这将是东西容易..但我仍然在努力让我的新的视图中打开(SecondViewController)它不错误,并通过功能不用任何问题,但屏幕不显示,它仍然在表视图。 – arfur 2011-05-16 17:39:51