公告
财富商城
积分规则
提问
发文
2019-06-21 04:37发布
三岁会撩人
This is a weird issue and I can't seem to find any help. On Swift 3, trying to make a call on the main thread I try to use DispatchQueue.main.async, but it doesn't compile.
Any ideas would be helpful.
Try this code instead, this is the Swift 3.0 syntax:
DispatchQueue.main.async(execute: { () -> Void in })
DispatchQueue.main.async { }
最多设置5个标签!
Try this code instead, this is the Swift 3.0 syntax:
For Swift 4.x you can also use: