-1
我在制作iOS应用程序时遇到问题。 我使用最新的SDK和storyboard与tableView。如果我在iPad上测试应用程序,那么确定,但在iPhone上detailviewcontroler没有实现。iOS:detailViewConroller未实现
我的代码
- (void)tableView:(UITableView *)sender didSelectRowAtIndexPath:(NSIndexPath *)path {
self.detailViewController.title = [[self.items objectAtIndex:path.row] title];
[self.detailViewController.detailWebView loadHTMLString:[[self.items objectAtIndex:path.row] content] baseURL:[NSURL fileURLWithPath:[[NSBundle mainBundle] bundlePath]]];
}
我控制与iPad故事板一切和引用是相同的。
请帮帮我。
我加入initilazation并不能解决问题。并在ipad中详细清空: – Macro 2012-04-14 12:27:44
尝试此if(!DetailViewController){ self.detailViewController = [[DetailViewController alloc] init]; } } self.detailViewController = [[DetailViewController alloc] initWithNibName:@“AllVideosViewController” bundle:nil]; [self.navigationController pushViewController:self.detailViewController animated:YES]; – freelancer 2012-04-14 12:42:08
没有变化:(仍然不能工作(我用我的标识符替换AllVideosViewController),就像我没有引用detailViewController,但它有趣的是,在ipad它的作品 – Macro 2012-04-14 15:51:43