任何想法都会有所帮助.
DispatchQueue.main.async(execute: { () -> Void in })
对于Swift 4.x,您还可以使用:
DispatchQueue.main.async { }