Swift: How To Practise A Background Thread

Background Threads

let priority = DISPATCH_QUEUE_PRIORITY_DEFAULT
dispatch_async(dispatch_get_global_queue(priority, 0)) {
    // create about task

    dispatch_async(dispatch_get_main_queue()) {
        // update about UI

    }
}
Next
Previous
Click here for Comments

0 komentar:

Please comment if there are any that need to be asked.