Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let priority = DISPATCH_QUEUE_PRIORITY_DEFAULT
- dispatch_async(dispatch_get_global_queue(priority, 0)) {
- // Background thread
- dispatch_async(dispatch_get_main_queue()) {
- // UI Updates
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement