Xcode Playground支持异步执行
2017-06-10 本文已影响2人
fisland
在Xcode playground中能正常执行类似GCD异步代码需要添加以下代码
import PlaygroundSupport
PlaygroundPage.current.needsIndefiniteExecution = true
在Xcode playground中能正常执行类似GCD异步代码需要添加以下代码
import PlaygroundSupport
PlaygroundPage.current.needsIndefiniteExecution = true