gpt4 book ai didi

ios - UIAlertView 随机崩溃

转载 作者:行者123 更新时间:2023-12-01 16:56:34 25 4
gpt4 key购买 nike

我的 UIAlertView 遇到随机崩溃。崩溃并不总是发生,而且是非常随机的。如有任何帮助,我们将不胜感激。

这是堆栈跟踪:

Thread 0 name:  Dispatch queue: com.apple.main-thread  
Thread 0 Crashed:
0 libobjc.A.dylib 0x398685b0 objc_msgSend + 16
1 UIKit 0x33b59c4c -[UIAlertView(Private) _buttonClicked:]
2 UIKit 0x33aed0c0 -[UIApplication sendAction:to:from:forEvent:]
3 UIKit 0x33aed072 -[UIApplication sendAction:toTarget:fromSender:forEvent:]
4 UIKit 0x33aed050 -[UIControl sendAction:to:forEvent:]
5 UIKit 0x33aec906 -[UIControl(Internal) _sendActionsForEvents:withEvent:]
6 UIKit 0x33aecdfc -[UIControl touchesEnded:withEvent:]
7 UIKit 0x33a155ec -[UIWindow _sendTouchesForEvent:]
8 UIKit 0x33a027fc -[UIApplication sendEvent:]
9 UIKit 0x33a02116 _UIApplicationHandleEvent
10 GraphicsServices 0x356f25a0 _PurpleEventCallback
11 GraphicsServices 0x356f21ce PurpleEventCallback
12 CoreFoundation 0x31bcf170 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__
13 CoreFoundation 0x31bcf112 __CFRunLoopDoSource1
14 CoreFoundation 0x31bcdf94 __CFRunLoopRun
15 CoreFoundation 0x31b40eb8 CFRunLoopRunSpecific
16 CoreFoundation 0x31b40d44 CFRunLoopRunInMode
17 GraphicsServices 0x356f12e6 GSEventRunModal
18 UIKit 0x33a562fc UIApplicationMain

最佳答案

在按下按钮之前,您的代表可能正在被清理。例如,如果 View 或启动警报的 View 不再出现在屏幕上,则可能会发生这种情况。尝试打开“僵尸对象”(在“编辑方案”->“运行”->“诊断”下)。如果向已释放的对象发送消息,您将在调试控制台中收到一条消息。

enter image description here

关于ios - UIAlertView 随机崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15812567/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com