解決不了這個問題的iOS - 捆綁NSInternalInconsistencyException無法加載NIB
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not load NIB in bundle: 'NSBundle </var/mobile/Applications/A0EC53C5-E9C0-4191-9BAF-0B61205B92F0/Handbook.app> (loaded)' with name 'pAM-c5-AKQ-view-CuA-a0-uZt' and directory 'Storyboard.storyboardc''
我有一個ListViewController: UITableViewController
其推動另一DetailViewController
:
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
[self performSegueWithIdentifier:@"ShowDetailsSegue" sender:self];
}
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
{
if ([[segue identifier] isEqualToString:@"ShowDetailsSegue"])
{
DetailViewController *detailController = (DetailViewController *)[segue destinationViewController];
detailController.department = [departmentsList objectAtIndex:[self.tableView indexPathForSelectedRow].row];
}
}
一個奇怪的事情是,我可以執行SEGUE並返回5次。第5次,我的DetailViewController
出現空表,第6次我得到上述異常。
我在SO上發現了很多類似的問題,但對我來說沒有任何工作解決方案。
不知道什麼可能是錯的?任何建議在哪裏看?
請參閱此線程http://stackoverflow.com/questions/5415252/nsinternalinconsistencyexception-could-not-load-nib-in-bundle – sandy
http://stackoverflow.com/questions/5415252/nsinternalinconsistencyexception-ould - 不加載筆尖包裹 – sandy
不幸的是,沒有。仍然無法修復它 – Oleg