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