This is the 25th day of my participation in the August More Text Challenge. Libraries are ways of sharing program code. Libraries are essentially executable...
This is an article about the view rendering process and performance optimization for iOS. IOS does a good job of encapsulating the underlying rendering, but...
A, KVO details, with the use of the context, open the apple official documentation, see the context related definition: registration method addObserver: forKeyPath: options: context:...
Assembly language Flow High-level language -> Assembly language -> Machine language -> computer high-level language: for example, Swift, Java assembly language: MOVq %rax % Rdi...
This introduction will cover block types, circular references, and related interview questions, and the next article will verify and analyze these upper-level representations using the...
Data ()->ro->instanceSize is the size of the memory for all attributes of this class. There's only one property that inherits from NSObject, ISA, that returns...
Bear:... The three brothers of factory pattern are simple factory pattern, factory method pattern and abstract factory pattern, which are all creative design patterns. Didn't...
The interface separation principle breaks down some large interfaces into smaller ones for use, that is, it is better to have multiple specific client interfaces...
In this chapter, a more comprehensive understanding of Mach-O is required. For details, see Mach-O structure analysis. Mach -O is divided into three parts. The...
This article complements the previous article, which analyzed the source code for alloc, by exploring why NSObject's alloc methods don't go through the source project....
This is the 29th day that I have participated in the August More Text Challenge. This article mainly introduces the principle and optimization of interface...
1. Objc_xxx series of functions objc_getClass obtains the Class object objc_getMetaClass obtains the MetaClass object objc_allocateClassPair allocates space and creates
Understand Apple signature de partner must know, because apple official audit is more and more strict, many apps because they can not pass the audit...
Exploration of iOS structure internal storage and object memory, including one, the influence of object memory factors, two, structure internal storage alignment exploration, three, malloc...
In this article we explore the underlying principles associated with OC-like objects from the following perspectives. The underlying structure of classes ** objC_class ** analysis,...