0

UIAlertView 从 IOS 5 到 IOS 6 有什么区别。在我的 IOS 6 中,所有服务器端验证消息都不起作用..如果我们单击警报按钮应用程序崩溃。我需要帮助。

(lldb) bt:(在 bt 得到这个日志之后)

 * thread #1: tid = 0x1c03, 0x0294209b libobjc.A.dylib`objc_msgSend + 15, stop reason = EXC_BAD_ACCESS (code=1, address=0x80000008)
        frame #0: 0x0294209b libobjc.A.dylib`objc_msgSend + 15
        frame #1: 0x01fc9020 UIKit`-[UIAlertView(Private) _buttonClicked:] + 294
        frame #2: 0x02944705 libobjc.A.dylib`-[NSObject performSelector:withObject:withObject:] + 77
        frame #3: 0x01bd9920 UIKit`-[UIApplication sendAction:to:from:forEvent:] + 96
        frame #4: 0x01bd98b8 UIKit`-[UIApplication sendAction:toTarget:fromSender:forEvent:] + 61
        frame #5: 0x01c9a671 UIKit`-[UIControl sendAction:to:forEvent:] + 66
        frame #6: 0x01c9abcf UIKit`-[UIControl(Internal) _sendActionsForEvents:withEvent:] + 578
        frame #7: 0x01c99d38 UIKit`-[UIControl touchesEnded:withEvent:] + 546
        frame #8: 0x01c0933f UIKit`-[UIWindow _sendTouchesForEvent:] + 846
        frame #9: 0x01c09552 UIKit`-[UIWindow sendEvent:] + 273
        frame #10: 0x01be73aa UIKit`-[UIApplication sendEvent:] + 436
        frame #11: 0x01bd8cf8 UIKit`_UIApplicationHandleEvent + 9874
        frame #12: 0x035fedf9 GraphicsServices`_PurpleEventCallback + 339
        frame #13: 0x035fead0 GraphicsServices`PurpleEventCallback + 46
        frame #14: 0x02e89bf5 CoreFoundation`__CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 53
        frame #15: 0x02e89962 CoreFoundation`__CFRunLoopDoSource1 + 146
        frame #16: 0x02ebabb6 CoreFoundation`__CFRunLoopRun + 2118
        frame #17: 0x02eb9f44 CoreFoundation`CFRunLoopRunSpecific + 276
        frame #18: 0x02eb9e1b CoreFoundation`CFRunLoopRunInMode + 123
        frame #19: 0x035fd7e3 GraphicsServices`GSEventRunModal + 88
        frame #20: 0x035fd668 GraphicsServices`GSEventRun + 104
        frame #21: 0x01bd665c UIKit`UIApplicationMain + 1211
        frame #22: 0x0000255d mobiletummy`main + 125 at main.m:14
        frame #23: 0x00002495 mobiletummy`start + 53
4

1 回答 1

1

有同样的问题。在主线程上抛出 UIAlert 为我解决了这个问题。但是在您的日志堆栈上,您似乎已经是主线程之一。

于 2012-10-10T09:52:03.187 回答