Xcode 控制台打印报错信息:
reason: 'Modifications to the layout engine must not be performed from a background thread after it has been accessed from the main thread
解决办法:
DispatchQueue.main.async { // 刷新UI的代码放到主线程 }
Xcode 控制台打印报错信息:
reason: 'Modifications to the layout engine must not be performed from a background thread after it has been accessed from the main thread
解决办法:
DispatchQueue.main.async { // 刷新UI的代码放到主线程 }
本文标题:2019-11-19
本文链接:https://www.haomeiwen.com/subject/ppwgictx.html
网友评论