0
只是試圖將mobFox實現到我的應用程序中,但無法使其運行。我懷疑這是因爲我的一般方法根本不使用IB,因爲示例代碼工作得很好。實現mobFox會導致崩潰
運行後,它指向的線
int retVal = UIApplicationMain(argc, argv, nil, @"UntitledAppDelegate");
這是在我的main.m,
以此爲結果
2011-04-18 16:07:48.000 BinTeeth[10141:bf07] -[NSCFString md5]: unrecognized selector sent to instance 0x622ef40 2011-04-18 16:07:48.001 BinTeeth[10141:bf07] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSCFString md5]: unrecognized selector sent to instance 0x622ef40' *** Call stack at first throw: ( 0 CoreFoundation 0x014845a9 __exceptionPreprocess + 185 1 libobjc.A.dylib 0x015d8313 objc_exception_throw + 44 2 CoreFoundation 0x014860bb -[NSObject(NSObject) doesNotRecognizeSelector:] + 187 3 CoreFoundation 0x013f5966 ___forwarding___ + 966 4 CoreFoundation 0x013f5522 _CF_forwarding_prep_0 + 50 5 BinTeeth 0x0002d90f -[MobFoxBannerView asyncRequestAdWithPublisherId:] + 177 6 Foundation 0x00670cf4 -[NSThread main] + 81 7 Foundation 0x00670c80 __NSThread__main__ + 1387 8 libSystem.B.dylib 0x9758c85d _pthread_start + 345 9 libSystem.B.dylib 0x9758c6e2 thread_start + 34 ) terminate called after throwing an instance of 'NSException'
任何幫助,將不勝感激,我有嘗試了很多東西,但目前爲止我還沒有真正看到loke解決方案
tnx
好吧,其實一開始我已經把那裏-ObjC並徘徊WTH ... O礦...- ObjC是right..thank你提醒我要再次檢查。 :) – Vanya 2011-04-18 14:34:52
也確保你已經設置調試和釋放到-ObjC這是我的錯誤......只有調試,所以它在調試時工作正常,但只要我嘗試它在儀器崩潰!猜測這隻適用於Xcode 4 – bllubbor 2011-07-07 07:36:29