Skip to content

Instantly share code, notes, and snippets.

@wiwi-git
Created November 30, 2020 10:15
Show Gist options
  • Save wiwi-git/f9b1a692f26446446cfc3f6c3585a3d2 to your computer and use it in GitHub Desktop.
Save wiwi-git/f9b1a692f26446446cfc3f6c3585a3d2 to your computer and use it in GitHub Desktop.
@objc func touchUpStartButtonAction() {
print("start")
for url in imageUrls {
DispatchQueue.global(qos: .userInteractive).async {
let image = UIImage(contentsOfFile: url!.relativePath)
DispatchQueue.main.async {
print(url!.relativePath)
self.loadingView!.imageView.image = image
self.loadingView!.setNeedsDisplay()
}
var t = 0
for i in 0 ... 10000000 {
t += i
}
print(t)
}
}
print("end")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment