[UIView的_forgetDependentConstraint:]:消息发送到释放的实例 [英] [UIView _forgetDependentConstraint:]: message sent to deallocated instance
本文介绍了[UIView的_forgetDependentConstraint:]:消息发送到释放的实例的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我试着用NSZobie和所有其他人。不过我遇到的问题。能不能找到应用程序的地方坠毁。请帮忙。先谢谢了。
*** - [UIView的_forgetDependentConstraint:]:消息发送到释放的实例0x208e0010
(LLDB)BT
*线#1:TID = 0x2503,0x342b3468 CoreFoundation` ___ forwarding___ + 192,停止的原因= EXC_BREAKPOINT(code = EXC_ARM_B`enter code here`REAKPOINT,分code = 0xdefe)
帧#0:0x342b3468 CoreFoundation` ___ forwarding___ + 192
帧#1:0x3420af68 CoreFoundation`__forwarding_ prep_0 ___ + 24
帧#2:0x364f24ba UIKit`_updateViewDependenciesForConstraint + 202
帧#3:0x364f9a2c UIKit`__72- [UIView的(AdditionalLayoutSupport)_removeRelevantConstraintsFromEngine:] _ block_invoke_0 + 264
帧#4:0x34c65882 Foundation`- [NSISEngine withAutomaticOptimizationDisabled:] + 166
帧#5:0x364f98ee UIKit`- [UIView的(AdditionalLayoutSupport)_removeRelevantConstraintsFromEngine:] + 94
帧#6:0x3629f4a0 UIKit`__UIViewWillBeRemovedFromSuperview + 588
帧#7:0x360e7848 UIKit`- [UIView的(层次)removeFromSuperview] + 56
帧#8:0x36137f18 UIKit`- [UINavigationTransitionView _cleanupTransition] + 92
帧#9:0x360ceab2 UIKit`- [UIViewAnimationState sendDelegateAnimationDidStop:完成:] + 158
帧#10:0x361438ee UIKit`- [UIViewAnimationState animationDidStop:完成:] + 50
帧#11:0x35e78c00 QuartzCore`CA ::层:: run_animation_callbacks(无效*)+ 208
帧#12:0x3c3f04b6 libdispatch.dylib`_dispatch_client_callout + 22
帧#13:0x3c3f51bc libdispatch.dylib`_dispatch_main_queue_callback_4CF $ VARIANT $ MP + 224
帧#14:0x34284f3a CoreFoundation`__CFRunLoopRun + 1290
帧#15:0x341f7ebc CoreFoundation`CFRunLoopRunSpecific + 356
帧#16:0x341f7d48 CoreFoundation`CFRunLoopRunInMode + 104
帧#17:0x37dd02ea GraphicsServices`GSEventRunModal + 74
帧#18:0x3610d300 UIKit`UIApplicationMain + 1120
帧#19:0x000521deMyApp®`main(ARGC = 1,argv的= 0x2fdb3cf8)+ 162 main.m文件:6
帧#20:0x3c410b20 libdyld.dylib`start + 4
解决方案
检查您是否有UIAlertView中或视图动画来之前回到你的看法。看来你initalize它视图的局部变量,wihout有前preSS采用自委托,或者你使用removeFromSuperview一个视图,而行动消除后,仍然调用它。
I tried using NSZobie and all others. Still i face issues. can't able to find where app crashed. Please Help. thanks in advance.
*** -[UIView _forgetDependentConstraint:]: message sent to deallocated instance 0x208e0010
(lldb) bt
* thread #1: tid = 0x2503, 0x342b3468 CoreFoundation`___forwarding___ + 192, stop reason = EXC_BREAKPOINT (code=EXC_ARM_B`enter code here`REAKPOINT, subcode=0xdefe)
frame #0: 0x342b3468 CoreFoundation`___forwarding___ + 192
frame #1: 0x3420af68 CoreFoundation`__forwarding_prep_0___ + 24
frame #2: 0x364f24ba UIKit`_updateViewDependenciesForConstraint + 202
frame #3: 0x364f9a2c UIKit`__72-[UIView(AdditionalLayoutSupport) _removeRelevantConstraintsFromEngine:]_block_invoke_0 + 264
frame #4: 0x34c65882 Foundation`-[NSISEngine withAutomaticOptimizationDisabled:] + 166
frame #5: 0x364f98ee UIKit`-[UIView(AdditionalLayoutSupport) _removeRelevantConstraintsFromEngine:] + 94
frame #6: 0x3629f4a0 UIKit`__UIViewWillBeRemovedFromSuperview + 588
frame #7: 0x360e7848 UIKit`-[UIView(Hierarchy) removeFromSuperview] + 56
frame #8: 0x36137f18 UIKit`-[UINavigationTransitionView _cleanupTransition] + 92
frame #9: 0x360ceab2 UIKit`-[UIViewAnimationState sendDelegateAnimationDidStop:finished:] + 158
frame #10: 0x361438ee UIKit`-[UIViewAnimationState animationDidStop:finished:] + 50
frame #11: 0x35e78c00 QuartzCore`CA::Layer::run_animation_callbacks(void*) + 208
frame #12: 0x3c3f04b6 libdispatch.dylib`_dispatch_client_callout + 22
frame #13: 0x3c3f51bc libdispatch.dylib`_dispatch_main_queue_callback_4CF$VARIANT$mp + 224
frame #14: 0x34284f3a CoreFoundation`__CFRunLoopRun + 1290
frame #15: 0x341f7ebc CoreFoundation`CFRunLoopRunSpecific + 356
frame #16: 0x341f7d48 CoreFoundation`CFRunLoopRunInMode + 104
frame #17: 0x37dd02ea GraphicsServices`GSEventRunModal + 74
frame #18: 0x3610d300 UIKit`UIApplicationMain + 1120
frame #19: 0x000521de MyApp®`main(argc=1, argv=0x2fdb3cf8) + 162 at main.m:6
frame #20: 0x3c410b20 libdyld.dylib`start + 4
解决方案
Check if you have UIAlertView or animations in view before came back to your view. It seems you are initalize a view with it's local variable, wihout having express use self delegate, or you use removeFromSuperview for a view while actions still call it after remove.
这篇关于[UIView的_forgetDependentConstraint:]:消息发送到释放的实例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文