Similarities and differences between Web front-end development and iOS terminal development IOS8 Multi-language alternative rules use Dispatch_sync deadlocks with caution
That is, this code is added in the main thread (viewdidload), and the main thread executes here and starts executingBlock'sTask, he will block the main thread,UntilThe queue's done what you gave me.Task, butThe queue is going to finish what you gavetask, because the queue is FIFO, it means that to complete the previous task, there is a chance to execute the task you just gave, which is equivalent to the current thread waiting for all the tasks in the queue to execute, thus causing a deadlock. So this sentence can not be called in the task code of the current queue, so in the use of Dispatch_sync must pay special attention, to ask yourself, why to use it, in the instance code, completely unnecessary, this is nothing to find a job type.
GCD Study (Fri) dispatch_barrier_async
GCD Study (vi) Dispatch_async and Dispatch_sync
iOS development: A Programmer's survival law-six programmer stories
Look at the 19-year-old iOS programmer who turned down Apple's offer.
Flashlight Application Just Ligh
Perfect Shot helps users to capture the most perfect group photos. Just press and hold the phone's camera key and wait, and the app can take a perfect picture in a few milliseconds, with everyone smiling and no one blinking.
A simple ViewModel practice
MVVM
GCD in-depth understanding
Technical Abstracts IOS GitHub technical Data