美文网首页
关于'accessing _cachedSystemAnimat

关于'accessing _cachedSystemAnimat

作者: 浅忆的简书 | 来源:发表于2017-07-21 09:54 被阅读0次

今天在测试分给我的一个 bug,在 ios10 的系统中而且第一次启动的时候才会呈现的崩溃,在后台打印的

invalid mode 'kCFRunLoopCommonModes' provided to CFRunLoopRunSpecific - break on _CFRunLoopError_RunCalledWithInvalidMode to debug. This message will only appear once per execution.

2017-07-21 09:26:21.722148 Rent[5406:1799106] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'accessing _cachedSystemAnimationFence requires the main thread;

大概看了一下应该是调用的时候占中线程,引起的 bug,把引起的蹦会的部分,放到主线程就好了

dispatch_async(dispatch_get_main_queue(), ^{

};

有其他解决的欢迎讨论

相关文章

网友评论

      本文标题:关于'accessing _cachedSystemAnimat

      本文链接:https://www.haomeiwen.com/subject/kbruittx.html