[OC learning notes] learn about GCD threads

1, Learn some basic knowledge (1) Queue: Queue queues are divided into the following types: 1. Global queue: dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0); 2. Main queue: dispatch_get_main_queue() 3. User created serial queue: dispatch_queue_create("com.yuna.com", DISPATCH_QUEUE_SERIAL/NULL); 4. User created parallel ...

Posted by Miichael on Sun, 20 Feb 2022 09:53:30 +0100

[Effective Objective-C] - Reading Notes

Article 1: understand the origin of Objective-C Objective-C evolved from Smalltalk (the ancestor of message language), so Objective-C uses "message structure" rather than "function call". The difference between the two is as follows: //Messaging (Objective-C) Object *obj = [Object new]; [obj performWith:parameter1 and ...

Posted by jackyhuphp on Sat, 15 Jan 2022 22:37:33 +0100

How does iOS development limit the scope of NSNotification

  in actual development, NSNotification can well decouple code and transmit data across layers. But because it is globally effective. Therefore, sometimes we don't want to have such a wide range of functions, but just want to send and receive notifications within a certain range. Recently, I made a plan to share with you. My side is mainly ...

Posted by josephferris on Mon, 20 Sep 2021 19:07:29 +0200