Cocoa touch Xcode 4中的UINavigationController和UITabBarController

Cocoa touch Xcode 4中的UINavigationController和UITabBarController,cocoa-touch,ios4,xcode4,Cocoa Touch,Ios4,Xcode4,我已经从Xcode 3切换到了Xcode 4,我的整个工作流程模式都被破坏了。我之所以做出改变,是因为我认为iOS5只能在Xcode 4上开发 不管怎样,使用Interface Builder制作带有UITabBarController的UINavigationController对我来说过去很简单,现在我找不到正确的属性。感觉苹果已经忘记了列表中的某些属性 我将如何在xcode 4中完成与下面教程相同的内容 我得到一个不同的错误 GNU gdb 6.3.50-20050815 (Apple v

我已经从Xcode 3切换到了Xcode 4,我的整个工作流程模式都被破坏了。我之所以做出改变,是因为我认为iOS5只能在Xcode 4上开发

不管怎样,使用Interface Builder制作带有UITabBarController的UINavigationController对我来说过去很简单,现在我找不到正确的属性。感觉苹果已经忘记了列表中的某些属性

我将如何在xcode 4中完成与下面教程相同的内容

我得到一个不同的错误

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) 

如果要将FirstViewController从视图控制器更改为导航控制器,请编辑FirstViewController,使声明如下所示:

@interface FirstViewController : UIViewController {
我还看到视图及其控制器已经为您创建和连接

编辑


编辑的问题显示您尚未为FacetimeUsersViewController nib设置视图出口

请检查更新的错误。我在FaceUsersViewController上有一个tableView现在你有一个UITableViewController加载一个不是UITableView的视图。这是一个UITableView tho,这是我不明白的:我无法猜测发生了什么,除非我看到你是如何设置的。我有三个xib文件,一个是主窗口,上面有一个选项卡栏,一个选项卡是基本视图控制器,另一个是UInavigationcontroller。在UINavigationController中,视图控制器设置为FaceUsersViewController。FaceUsersViewController上有一个tableView,其委托和数据源设置为文件所有者,该文件所有者设置为FaceUsersViewController类。