Introduction Through the previous exploration of alloc process, the call process of alloc method has been clear, but there is still a question about how...
Nsthreads, GCD, and NSOpration encapsulate PThreads. Synchronization: When a function call is made, the call does not return or continue until the result is received....
Description Create a new project Create a Share Extension Configure the primary application Configure the Share Extension Configure NSExtension Share Extension Logical Fill In The...
The following figure shows the relationship between instance objects, class objects, and metaclass, where the implementation arrow represents the parent class relationship and the dotted...
The essence of calling methods in OC is message passing, which is done through the objc_msgSend function. In the objc_msgSend assembler process, a CacheLookup assembler...
Methods are invoked in OC, and at run time the objc_msgSend function is used for message passing to invoke object methods. The objc_msgSend function is...
You can only call the initialization method once an object is generated. Some classes can also generate objects using other methods without alloc, and some...
KVO, commonly known as KeyValueObserving, is an event notification mechanism provided by Apple. Allows an object to listen for changes to specific properties of another...
The LLDB debugger has long replaced GDB as the default debugger in Xcode projects. http://lldb.llvm.org/tutorial.html command operation method: must first breaking point - > then...
IOS provides the mechanism of background tasks. By using background tasks, the App can perform some necessary logical processing in a few seconds when the...
Mute other programs while playing audio, or play audio on top of other programs' audio. The AVAudioSession class is introduced by the AVFoundation framework. Every...
Componentized development using PODS in the iOS world often requires a series of manual operations to update the Pod component. In particular, some business-related Pod...
- (void)start; - (void)start; The method simply adds threads to the pool of schedulable threads and waits for the CPU to schedule them for execution....
This is DevLink's series of interviews with Indigo K, RxSwift lecturer at iDev's Apple Developer Conference. At the upcoming iDev conference, he will talk about...
When you think of iOS multithreading, most people will immediately think of GCD(Grand Central Dispatch) because GCD is easy to use and the code logic...
This article is about "memory management mechanisms" in iOS. Prior to iOS 4, all iOS developers had to manually manage memory, that is, the allocation...
This article will examine how to improve OC code quality from an object-oriented perspective. Properties (@Property) are a feature of OC. @property: The compiler automatically...