2019-11-19

2019-11-19  本文已影响0人  红色小星

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的代码放到主线程 }

上一篇 下一篇

猜你喜欢

热点阅读