UINavigationController и UITabBarController в Xcode 4 - PullRequest
1 голос
/ 19 июня 2011

Я переключился с Xcode 3 на Xcode 4, и весь мой рабочий процесс разрушен. Я сделал изменение, потому что я думаю, что iOS 5 сможет быть разработана только на Xcode 4.

В любом случае, создание UINavigationController с UITabBarController раньше было просто для меня с помощью Interface Builder. Теперь я не могу найти правильные атрибуты. Такое чувство, что Apple забыла определенные атрибуты из списка.

Как бы я сделал то же самое из учебника ниже в xcode 4.

http://www.xcode -tutorials.com / UITabBarController-и-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) 

1 Ответ

0 голосов
/ 19 июня 2011

Если вы говорите об изменении FirstViewController с View Controller на Navigation Controller - тогда отредактируйте FirstViewController так, чтобы объявление выглядело так:

@interface FirstViewController : UIViewController {

Я также вижу, что представленияи их контроллеры уже созданы и подключены для вас.

Редактировать

Отредактированный вопрос показывает, что вы не настроили точку просмотра для FacetimeUsersViewControllerперо

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...