2011-08-24 14 views
0

私のアプリにUITabBarControllerを追加しましたが、しばらくしてから削除しました。アプリケーションはUITabBarControllerを追加する前に正常に動作していましたが、アプリケーションから削除したときに例外が発生しました。アプリからタブバーを削除した後で例外が発生する

Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<XpensesAppDelegate 0x4daaa40> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key tabBarController.' 
*** Call stack at first throw: 
(
    0 CoreFoundation      0x00fa45a9 __exceptionPreprocess + 185 
    1 libobjc.A.dylib      0x010f8313 objc_exception_throw + 44 
    2 CoreFoundation      0x00fa44e1 -[NSException raise] + 17 
    3 Foundation       0x00035677 _NSSetUsingKeyValueSetter + 135 
    4 Foundation       0x000355e5 -[NSObject(NSKeyValueCoding) setValue:forKey:] + 285 
    5 UIKit        0x004b930c -[UIRuntimeOutletConnection connect] + 112 
    6 CoreFoundation      0x00f1a8cf -[NSArray makeObjectsPerformSelector:] + 239 
    7 UIKit        0x004b7d23 -[UINib instantiateWithOwner:options:] + 1041 
    8 UIKit        0x004b9ab7 -[NSBundle(UINSBundleAdditions) loadNibNamed:owner:options:] + 168 
    9 UIKit        0x002bf17a -[UIApplication _loadMainNibFile] + 172 
    10 UIKit        0x002bfcf4 -[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 291 
    11 UIKit        0x002ca617 -[UIApplication handleEvent:withNewEvent:] + 1533 
    12 UIKit        0x002c2abf -[UIApplication sendEvent:] + 71 
    13 UIKit        0x002c7f2e _UIApplicationHandleEvent + 7576 
    14 GraphicsServices     0x018fc992 PurpleEventCallback + 1550 
    15 CoreFoundation      0x00f85944 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 52 
    16 CoreFoundation      0x00ee5cf7 __CFRunLoopDoSource1 + 215 
    17 CoreFoundation      0x00ee2f83 __CFRunLoopRun + 979 
    18 CoreFoundation      0x00ee2840 CFRunLoopRunSpecific + 208 
    19 CoreFoundation      0x00ee2761 CFRunLoopRunInMode + 97 
    20 UIKit        0x002bf7d2 -[UIApplication _run] + 623 
    21 UIKit        0x002cbc93 UIApplicationMain + 1160 
    22 Xpenses        0x00001ad9 main + 121 
    23 Xpenses        0x00001a55 start + 53 
    24 ???         0x00000001 0x0 + 1 
) 
terminate called throwing an exceptionsharedlibrary apply-load-rules all 

この例外を取り除く方法はありますか?

答えて

1

Interface BuilderでアプリケーションデリゲートのtabBarControllerアウトレットに接続しているものがあります。しかし、コンセントはもはや存在しないので、このエラーが発生しています。その接続を見つけて削除するだけです。

+0

お返事ありがとうございます。私はtabBarControllerのアウトレットとアプリケーションデリゲートとの接続を削除しましたが、同じ問題に直面しています。 appデリゲート接続インスペクタのステータスは次のとおりです。 – khuram

+0

appデリゲート接続インスペクタのステータスは次のとおりです。 [outlet] windows ---ウィンドウ。 [代理店を参照する]代理人---ファイルの所有者。これらの2以外の接続はありません。 – khuram

+0

同じエラーが発生した場合は、私はあなたを信じていないと言わなければなりません:) – jtbandes

関連する問題