我在尝试在iPad应用程序的表中的didSelectRow中推送ViewController时出现错误。在iPad应用程序的控制台中出现错误
错误,我得到的是:
** Terminating app due to uncaught exception 'NSInternalInconsistencyException',
reason: 'Could not load NIB in bundle: 'NSBundle /Users/abc/Library/Application
Support/iPhone Simulator/4.2/Applications/CFC7803E-4E44-45BF-9F47-``E24DDB44F286/SampleIpad.app> (loaded)' with name 'DetailView''
码表的didSelectRow
方法:
DetailView *detailViewController = [[DetailView alloc] initWithNibName:@"DetailView" bundle:nil];
// ...
// Pass the selected object to the new view controller.
[self.navigationController pushViewController:detailViewController animated:YES];
可以做些什么?
感谢您的输入。这对我有效。 – Meghan 2011-03-01 05:57:22