2011-12-01 43 views
-2
2011-12-01 10:30:37.211 basicViewBased[496:207] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '-[UIViewController _loadViewFromNibNamed:bundle:] loaded the "chapterViewController" nib but the view outlet was not set.' 
2011-12-01 10:30:37.213 basicViewBased[496:207] Stack: (
    42182736, 
    43340588, 
    41920267, 
    41920106, 
    3534983, 
    3526704, 
    3526410, 
    11676, 
    3526533, 
    3519391, 
    3579886, 
    3575616, 
    3583801, 
    3559329, 
    3586719, 
    3558971, 
    11384, 
    2903278, 
    3400766, 
    3410112, 
    3404909, 
    3030504, 
    2922051, 
    2953688, 
    51175804, 
    41461916, 
    41457832, 
    51169437, 
    51169634, 
    2945906, 
    9732, 
    9586 
) 
terminate called after throwing an instance of 'NSException' 
+0

你应该参考[加载的笔尖,但没有设置视图插口 - 新的InterfaceBuilder] [1]和['NSInternalInconsistencyException',原因:' - \ [UIViewController _loadViewFromNibNamed:bundle:\]加载了GameView笔尖,出口没有设置] [2]后。 [1]:http://stackoverflow.com/questions/4763519/loaded-nib-but-the-view-outlet-was-not-set-new-to-interfacebuilder [2] :http://stackoverflow.com/questions/5464010/nsinternalinconsistencyexception-reason-uiviewcontroller-loadviewfromnib –

回答

-1

在xib文件中,您没有将视图与xib连接起来。

+0

我们也这样做,但仍然显示异常 – user

+0

清理所有目标,并重新运行 – Tendulkar

+0

也这样做。我在一个xib上加载两个自定义视图。 – user