2011-06-19 10 views
1

私はXcode 3からXcode 4への切り替えを行いました。私の全体的なワークフローのパターンは台無しです。私はiOS 5がXcode 4でしか開発できないと考えて変更しました。Xcode 4のUINavigationControllerとUITabBarController

とにかくUITabBarControllerを使ってUITabBarControllerを使って私のためにまっすぐ進むことができました。属性。 Appleはリストから特定の属性を忘れてしまったようだ。

私はあなたが見るからFirstViewControllerの変更について話している場合4.

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

Xcodeで以下のチュートリアルの等しいが、私は

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

異なるエラーを取得する方法を行うだろうコントローラをナビゲーションコントローラに設定してから、FirstViewControllerを編集して、宣言が次のようになるようにします。

@interface FirstViewController : UIViewController { 

また、ビューとそのコントローラが既に作成され、あなたのために接続されていることがわかります。

編集

は、編集された質問は、あなたがFacetimeUsersViewControllerペン先

+0

チェックのためのビューのアウトレットを設定していないことを示して更新エラーしてください。私はFaceUsersViewControllerのtableViewを持っています – mintuz

+0

これで 'UITableView'ではないビューをロードする' UITableViewController'ができました。それはエラーメッセージでそう言います。 – Abizern

+0

それは私が理解していないことである、それはUITableView thoです:S – mintuz

関連する問題