2010-01-20 51 views
0

默認情況下,它鏈接到RootViewController,當我想改變它到另一個視圖時,它得到了一些崩潰 它有一個解決方案(InterfaceBuilder)更改視圖到另一個類?在InterfaceBuilder中更改NavigationController的視圖時出現問題?

當運行程序得到了一些錯誤

[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 
) 

回答

0

它看起來像你的TestFC.xib文件沒有其觀點的出口設置爲文件的所有者。

+0

謝謝sw讓我試試 – RAGOpoR 2010-01-20 06:18:38

相關問題