2011-06-19 95 views
1

我已經從Xcode 3切換到Xcode 4,並且我的整個工作流程模式已被破壞。我做了更改,因爲我認爲iOS 5將只能在Xcode 4上開發。UINavigationController和UITabBarController在Xcode 4中

反正,使用UITabBarController對UITabBarController進行UINavigationController過去是直接使用Interface Builder,現在我無法找到正確的屬性。感覺就像Apple忘記了列表中的某些屬性。

我會怎麼做下面在Xcode平等教程的4

http://www.xcode-tutorials.com/uitabbarcontroller-and-uinavigationcontroller/

我得到一個不同的錯誤

GNU gdb 6.3.50-20050815 (Apple version gdb-1518) (Sat Feb 12 02:52:12 UTC 2011) 
Copyright 2004 Free Software Foundation, Inc. 
GDB is free software, covered by the GNU General Public License, and you are 
welcome to change it and/or distribute copies of it under certain conditions. 
Type "show copying" to see the conditions. 
There is absolutely no warranty for GDB. Type "show warranty" for details. 
This GDB was configured as "x86_64-apple-darwin".Attaching to process 56741. 
2011-06-19 15:58:31.814 FaceDirectory[56741:207] Reachability Flag Status: -R ------- networkStatusForFlags 
2011-06-19 15:58:31.815 FaceDirectory[56741:207] Reachable WiFi 
2011-06-19 15:58:32.792 FaceDirectory[56741:207] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '-[UITableViewController loadView] loaded the "FaceUsersViewController" nib but didn't get a UITableView.' 
*** Call stack at first throw: 
(
    0 CoreFoundation      0x00e315a9 __exceptionPreprocess + 185 
    1 libobjc.A.dylib      0x00f85313 objc_exception_throw + 44 
    2 CoreFoundation      0x00de9ef8 +[NSException raise:format:arguments:] + 136 
    3 CoreFoundation      0x00de9e6a +[NSException raise:format:] + 58 
    4 UIKit        0x0028ce9b -[UITableViewController loadView] + 275 
    5 UIKit        0x0013300e -[UIViewController view] + 56 
    6 UIKit        0x00131482 -[UIViewController contentScrollView] + 42 
    7 UIKit        0x00141f25 -[UINavigationController _computeAndApplyScrollContentInsetDeltaForViewController:] + 48 
    8 UIKit        0x00140555 -[UINavigationController _layoutViewController:] + 43 
    9 UIKit        0x00141870 -[UINavigationController _startTransition:fromViewController:toViewController:] + 524 
    10 UIKit        0x0013c32a -[UINavigationController _startDeferredTransitionIfNeeded] + 266 
    11 UIKit        0x002572e9 -[UILayoutContainerView layoutSubviews] + 226 
    12 QuartzCore       0x01952a5a -[CALayer layoutSublayers] + 181 
    13 QuartzCore       0x01954ddc CALayerLayoutIfNeeded + 220 
    14 QuartzCore       0x018fa0b4 _ZN2CA7Context18commit_transactionEPNS_11TransactionE + 310 
    15 QuartzCore       0x018fb294 _ZN2CA11Transaction6commitEv + 292 
    16 QuartzCore       0x018fb46d _ZN2CA11Transaction17observer_callbackEP19__CFRunLoopObservermPv + 99 
    17 CoreFoundation      0x00e1289b __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 27 
    18 CoreFoundation      0x00da76e7 __CFRunLoopDoObservers + 295 
    19 CoreFoundation      0x00d701d7 __CFRunLoopRun + 1575 
    20 CoreFoundation      0x00d6f840 CFRunLoopRunSpecific + 208 
    21 CoreFoundation      0x00d6f761 CFRunLoopRunInMode + 97 
    22 GraphicsServices     0x013091c4 GSEventRunModal + 217 
    23 GraphicsServices     0x01309289 GSEventRun + 115 
    24 UIKit        0x00091c93 UIApplicationMain + 1160 
    25 FaceDirectory      0x00002689 main + 121 
    26 FaceDirectory      0x00002605 start + 53 
) 
terminate called after throwing an instance of 'NSException' 
sharedlibrary apply-load-rules all 
Current language: auto; currently objective-c 
(gdb) 

回答

0

如果你在談論從View改變FirstViewController控制器到導航控制器 - 然後編輯FirstViewController,以便聲明如下所示:

@interface FirstViewController : UIViewController { 

我也看到視圖和他們的控制器已經被創建並且爲你着迷。

編輯

的編輯問題,表明你還沒有建立視圖出路FacetimeUsersViewController筆尖

+0

檢查,請更新的錯誤。我在FaceUsersViewController上有一個tableView – mintuz

+0

現在你有一個'UITableViewController'加載一個不是'UITableView'的視圖。它在錯誤信息中是這樣說的。 – Abizern

+0

這是一個UITableView壽,這是我不明白:S – mintuz

相關問題