在Interface Builder中更改导航控制器视图时出现问题?

时间:2010-01-20 03:27:47

标签: iphone interface-builder uinavigationcontroller

默认它链接到RootViewController当我想将它更改为另一个视图它有一些崩溃 它是否有一个解决方案(InterfaceBuilder)用于更改视图到另一个类?

当运行程序出现错误时

[Session started at 2010-01-20 10:17:14 +0700.]
2010-01-20 10:17:16.560 AsianDelight[2816:207] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '-[UIViewController _loadViewFromNibNamed:bundle:] loaded the "TestFC" nib but the view outlet was not set.'
2010-01-20 10:17:16.577 AsianDelight[2816:207] Stack: (
    30409819,
    2481497353,
    30493755,
    30493594,
    3293754,
    3287099,
    3286817,
    3280274,
    3322548,
    3318574,
    3325210,
    3306266,
    4477668,
    29000368,
    28999791,
    29081215,
    3283858,
    2890716,
    2869039,
    2863409,
    3279229,
    3321733,
    2940469,
    2933949,
    2933720,
    2907787,
    8022,
    2770463,
    2808330,
    2796424,
    2778835,
    2805941,
    38506193,
    30194560,
    30190664,
    2772585
)

1 个答案:

答案 0 :(得分:0)

看起来您的TestFC.xib文件没有将其视图插座设置为文件所有者。