UINavigationController和UITabBarController在Xcode 4中
问题描述:
我已经从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)
答
如果你在谈论从View改变FirstViewController
控制器到导航控制器 - 然后编辑FirstViewController
,以便声明如下所示:
@interface FirstViewController : UIViewController {
我也看到视图和他们的控制器已经被创建并且为你着迷。
编辑
的编辑问题,表明你还没有建立视图出路FacetimeUsersViewController
笔尖
检查,请更新的错误。我在FaceUsersViewController上有一个tableView – mintuz
现在你有一个'UITableViewController'加载一个不是'UITableView'的视图。它在错误信息中是这样说的。 – Abizern
这是一个UITableView寿,这是我不明白:S – mintuz