Advertisement
Guest User

Untitled

a guest
Oct 25th, 2016
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. let priority = DISPATCH_QUEUE_PRIORITY_DEFAULT
  2. dispatch_async(dispatch_get_global_queue(priority, 0)) {
  3. // Background thread
  4. dispatch_async(dispatch_get_main_queue()) {
  5. // UI Updates
  6. }
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement