加载自定义视图时出现NSInternalInconsistencyException

时间:2011-12-01 05:17:41

标签: xcode cocoa-touch

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'

1 个答案:

答案 0 :(得分:-1)

在xib文件中,您没有使用xib连接视图。