[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

Replication of objects in OC: II

Ladies and gentlemen, we introduced object replication in OC in the previous chapter, and we will continue to introduce this knowledge in this chapter. In the last chapter, we introduced what replication is and how to replicate. This chapter will introduce the principles behind replication and the principles of replication operation. Principle ...

Posted by onepixel on Tue, 21 Dec 2021 11:18:54 +0100

How to use dSYM to symbolize crash logs. Analyze online crash

How to use dSYM to symbolize crash logs. Analyze online crash1 get the unresolved crash log.2 get dSYM file3 symbolization using xcode's symbolic graph tool3.1 find symbolicatecrash3.2 place crash, dSYM and symbolic crash in the same folder3.3 execute commands to generate symbolic files4 frequently asked questions4.1 Error: "DEVELOPER_DIR" is n ...

Posted by aaadee on Sat, 11 Dec 2021 02:27:34 +0100