2012-09-24 62 views
2

此應用程序在幾個月前發佈並在iOS 4/5中完美運行。現在在iOS 6的某些屏幕上出現崩潰。iOS 6與iAD崩潰

相當容易實現。在xib中有一個AdBannerView。我把它連接到了delagate。讓我的delagate方法顯示/隱藏廣告。這裏是崩潰數據。

異常類型:EXC_CRASH(SIGABRT)

上次異常回溯:

0 CoreFoundation     0x36d9b29e __exceptionPreprocess + 158 
1 libobjc.A.dylib     0x350ab97a objc_exception_throw + 26 
2 CoreFoundation     0x36cec55a -[__NSPlaceholderDictionary initWithObjects:forKeys:count:] + 130 
3 CoreFoundation     0x36d230ce +[NSDictionary dictionaryWithObjects:forKeys:count:] + 46 
4 iAd        0x3594c23e -[ADBannerView setDelegate:] + 126 
5 Foundation      0x347b49cc -[NSObject(NSKeyValueCoding) setValue:forKey:] + 208 
6 UIKit       0x382101dc -[UIView(CALayerDelegate) setValue:forKey:] + 156 
7 Foundation      0x347b071e -[NSObject(NSKeyValueCoding) setValue:forKeyPath:] + 294 
8 CoreFoundation     0x36d21616 -[NSArray makeObjectsPerformSelector:] + 174 
9 UIKit       0x38209240 -[UINib instantiateWithOwner:options:] + 1036 
10 UIKit       0x38208abe -[UIViewController _loadViewFromNibNamed:bundle:] + 230 
11 UIKit       0x38101020 -[UIViewController loadView] + 88 
12 UIKit       0x3808b468 -[UIViewController loadViewIfRequired] + 64 
13 UIKit       0x380e0136 -[UIViewController contentScrollView] + 22 
14 UIKit       0x380e007c -[UINavigationController _computeAndApplyScrollContentInsetDeltaForViewController:] + 24 
15 UIKit       0x380dff60 -[UINavigationController _layoutViewController:] + 28 
16 UIKit       0x380dfe84 -[UINavigationController _updateScrollViewFromViewController:toViewController:] + 268 
17 UIKit       0x380df5c4 -[UINavigationController _startTransition:fromViewController:toViewController:] + 60 
18 UIKit       0x380df4ac -[UINavigationController _startDeferredTransitionIfNeeded:] + 320 
19 UIKit       0x380cdb8e -[UINavigationController pushViewController:transition:forceImmediate:] + 854 
20 UIKit       0x380cd82e -[UINavigationController pushViewController:animated:] + 34 
21 Hurricane      0x00002d9a -[TrackerViewController buttonPressed:] (TrackerViewController.m:111) 
22 UIKit       0x381570a8 -[UIApplication sendAction:to:from:forEvent:] + 68 
23 UIKit       0x3815705a -[UIApplication sendAction:toTarget:fromSender:forEvent:] + 26 
24 UIKit       0x38157038 -[UIControl sendAction:to:forEvent:] + 40 
25 UIKit       0x381568ee -[UIControl(Internal) _sendActionsForEvents:withEvent:] + 498 
26 UIKit       0x38156de4 -[UIControl touchesEnded:withEvent:] + 484 
27 UIKit       0x3807f5f4 -[UIWindow _sendTouchesForEvent:] + 520 
28 UIKit       0x3806c804 -[UIApplication sendEvent:] + 376 
29 UIKit       0x3806c11e _UIApplicationHandleEvent + 6150 
30 GraphicsServices    0x3721f59e _PurpleEventCallback + 586 
31 GraphicsServices    0x3721f1ce PurpleEventCallback + 30 
32 CoreFoundation     0x36d7016e __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 30 
33 CoreFoundation     0x36d70112 __CFRunLoopDoSource1 + 134 
34 CoreFoundation     0x36d6ef94 __CFRunLoopRun + 1380 
35 CoreFoundation     0x36ce1eb8 CFRunLoopRunSpecific + 352 
36 CoreFoundation     0x36ce1d44 CFRunLoopRunInMode + 100 
37 GraphicsServices    0x3721e2e6 GSEventRunModal + 70 
38 UIKit       0x380c02fc UIApplicationMain + 1116 
39 Hurricane      0x00002082 main (main.m:14) 
40 Hurricane      0x0000203c start + 36 

如果我無線化它的工作AdBannerView。重新連線並崩潰。我在這個特定的控制器中沒有任何字典。實際上,它只有6個按鈕通向其他屏幕。真正奇怪的是,代碼在其他屏幕中的其他地方使用,可以正常工作。顯然,它以前工作得很好。

回答

0

讓我告訴你,在iOS 6中,AdBannerView不贊成使用一些屬性和方法。我認爲這應該是你崩潰的原因。

請檢查該

http://developer.apple.com/library/ios/DOCUMENTATION/UserExperience/Reference/ADBannerView_Ref/Reference/Reference.html#//apple_ref/doc/uid/TP40009562-CH1-DontLinkElementID_9

+0

都能跟得上......不是。它沒有實施任何棄用。無論如何,蘋果給了我一些關於使用-description來引起這個問題的事情。不使用它。這確實是iOS 6中的錯誤。 –