当前位置: 代码迷 >> Iphone >> ios4.1的一个崩溃解决办法
  详细解决方案

ios4.1的一个崩溃解决办法

热度:145   发布时间:2016-04-25 05:58:09.0
ios4.1的一个崩溃
NSInvalidArgumentException
-[UIApplication applicationWillTerminate:]: unrecognized selector sent to instance 0x552660
0 CoreFoundation 0x31785fd3 __exceptionPreprocess 114
1 libobjc.A.dylib 0x320118a5 objc_exception_throw 24
2 CoreFoundation 0x31789a77 -[NSObject(NSObject) doesNotRecognizeSelector:] 102
3 CoreFoundation 0x31788f15 ___forwarding___ 508
4 CoreFoundation 0x3171b680 _CF_forwarding_prep_0 48
5 default 0x1468e28d -[CommonToolsView onClickCellBtn:] 104
6 CoreFoundation 0x317107ad -[NSObject(NSObject) performSelector:withObject:withObject:] 24
7 UIKit 0x3017a829 -[UIApplication sendAction:to:from:forEvent:] 84
8 UIKit 0x3017a7c9 -[UIApplication sendAction:toTarget:fromSender:forEvent:] 32
9 UIKit 0x3017a79b -[UIControl sendAction:to:forEvent:] 38
10 UIKit 0x3017a4ed -[UIControl(Internal) _sendActionsForEvents:withEvent:] 356
11 UIKit 0x3017ab3b -[UIControl touchesEnded:withEvent:] 342
12 UIKit 0x30172b89 _UIGestureRecognizerUpdateObserver 2904
13 CoreFoundation 0x3175ba49 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ 16
14 CoreFoundation 0x3175d475 __CFRunLoopDoObservers 412
15 CoreFoundation 0x3175e77b __CFRunLoopRun 854
16 CoreFoundation 0x317078eb CFRunLoopRunSpecific 230
17 CoreFoundation 0x317077f3 CFRunLoopRunInMode 58
18 GraphicsServices 0x33ac26ef GSEventRunModal 114
19 GraphicsServices 0x33ac279b GSEventRun 62
20 UIKit 0x3011e2a7 -[UIApplication _run] 402
21 UIKit 0x3011ce17 UIApplicationMain 670

以上是ios4.1系统报的一个崩溃,请问有没有高手遇到过此问题,或有相关的想法,烦告之,不胜感激。
(其它系统基本无此问题;程序中没用到CommonToolsView)

------解决方案--------------------
 unrecognized selector sent to instance 没有那个方法名
这种问题在debug环境下很容易就看到是哪句引起的
------解决方案--------------------
[CommonToolsView onClickCellBtn:]
全局搜索看看这个方法都在哪儿调用了,看看有没有可能找到线索
------解决方案--------------------
  相关解决方案