我的应用总是会出现此错误,大多数情况发生在iOS8上,我找不到理由,有人可以帮助我吗?
Thread : Crashed: com.apple.main-thread
0 libobjc.A.dylib 0x36001f46 objc_msgSend + 5
1 CoreFoundation 0x286f4e5d CFRelease + 600
2 QuartzCore 0x2b6d1a65 CA::release_objects(X::List<void const*>*) + 16
3 QuartzCore 0x2b6d1325 CA::Layer::~Layer() + 236
4 QuartzCore 0x2b6d101d -[CALayer dealloc] + 64
5 QuartzCore 0x2b6d0e1d CA::Layer::free_transaction(CA::Transaction*) + 136
6 QuartzCore 0x2b6cdab3 CA::Transaction::commit() + 418
7 QuartzCore 0x2b6c792d CA::Transaction::observer_callback(__CFRunLoopObserver*, unsigned long, void*) + 56
8 CoreFoundation 0x287b43b5 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 20
9 CoreFoundation 0x287b1a73 __CFRunLoopDoObservers + 278
10 CoreFoundation 0x287b1e7b __CFRunLoopRun + 914
11 CoreFoundation 0x28700211 CFRunLoopRunSpecific + 476
12 CoreFoundation 0x28700023 CFRunLoopRunInMode + 106
13 GraphicsServices 0x2fab30a9 GSEventRunModal + 136
14 UIKit 0x2bd0c1d1 UIApplicationMain + 1440
15 StockRadar 0x00040a6f main (main.m:16)
答案 0 :(得分:3)
如果您不使用动画,可以通过调用
来避免此错误[UIView setAnimationsEnabled:NO];
在控制器的init函数中。它似乎是一个静态类方法,因此请逐字使用。
答案 1 :(得分:0)
我有同样的问题,对我来说问题是我的错误跟踪器跟踪这个错误。
真正的错误是:
*** -[UIViewAnimationState release]: message sent to deallocated instance 0x1c4c5ab0
我跟随this thread
希望这可以帮到你。