Remnant of iOS interview - exorcism sword spectrum
How does GCD work?
Included in this article: https://juejin.cn/post/6976878024566243335
1. Serial queue, synchronous operation, no new thread will be created, and the operation will be executed in sequence; Serial queue, asynchronous operation, new thread will be created, and the operation will be carried out in sequence, Usage scenario: op ...
Posted by soto134 on Wed, 26 Jan 2022 08:03:17 +0100
cache exploration and analysis
I cache_t structure analysis
First, attach a cache_t principle analysis diagram
1.cache_t source code analysis
First, take a look at the general structure of cache in the source code
struct cache_t {
private:
explicit_atomic<uintptr_t> _bucketsAndMaybeMask; // 8
union {
struct {
explicit_atomic<mask_t& ...
Posted by treilad on Tue, 25 Jan 2022 01:36:34 +0100
Detailed introduction to iOS SDWebImage
In the picture loading framework of iOS, SDWebImage The frequency of use is very high. It supports downloading and caching pictures from the network, and setting pictures to the corresponding UIImageView control or UIButton control. Using SDWebImage to manage image loading related operations in the project can greatly improve the development ef ...
Posted by love_php on Wed, 19 Jan 2022 20:27:02 +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
"iOS development" how to write a poll gracefully
Article starting address( Mr Huang xiansen's blog (thatisawesome.club))
Business background
Think of a business scenario where the client initiates a task submission request to the Server through the / api/commit interface, and the Server returns a successful Response after receiving the request , in order to obtain the execution progress of ...
Posted by Beans on Mon, 10 Jan 2022 05:46:07 +0100
iOS process, thread, lock
Relationship between process and thread
A process is an application running in the system. Each process is independent. Each process runs in its dedicated and protected memory space. If a process wants to perform tasks, it must have a thread (each process must have at least one thread, called the main thread). All tasks of a process (progra ...
Posted by bapan on Fri, 07 Jan 2022 03:22:03 +0100
iOS - lazy loading and block value transfer
Lazy loading
First, before learning lazy loading, we must know what lazy loading is. Lazy loading is a method that we usually use to store the array of network data, the view of the controller, the customization of controls, complex operation logic and so on. Generally speaking, it is loaded when we need it.
Advantages of lazy loading
It is ...
Posted by anand_ragav on Sun, 02 Jan 2022 22:36:35 +0100
KVO principle analysis
preface
*** KVO official document link
I Share some details about KVO
1.context function
First, let's take a look at the description of context
addObserver:forKeyPath:options:context: the context pointer in the message contains any data, which will be returned to the observer in the corresponding change notification. You can specify NULL ...
Posted by LuiePL on Sun, 02 Jan 2022 21:05:24 +0100
Blind date app development to solve the problem of memory circular reference
What is a circular reference
ARC has been out for a long time. It is really convenient to automatically release memory, but it is not absolutely safe and will never cause memory leakage in the development and application of blind date app. An invisible killer that makes iOS objects unable to be released as expected is circular reference. Circu ...
Posted by RobbertvanOs on Wed, 22 Dec 2021 16:06:26 +0100
The essence and underlying principle of block in oc
The essence of block Type and storage area of block __ The essence of block Circular reference of block
preface:
The specific writing methods and usage scenarios of block will not be discussed here, because one day when you want to deeply understand the underlying principle of block, you have already written block dozens of times.
1, ...
Posted by delxy on Wed, 22 Dec 2021 14:51:57 +0100