2017-07-02 114 views

回答

1
let image = NSImage(data: Data(contentsOf: url)) 
+0

这将阻止主线程并使您的应用程序非常无响应。 –

+0

你可以随时使用后台线程,如果它变得没有反应 –