runtime and memory management of iOS

runtime and memory management of iOS What is it? To understand what runtime is, the description of official documents should be the most authoritative. The official definition is as follows: from compilation time and link time to runtime, Objective-C language will postpone decisions as much as possible. Whenever possible, it performs operatio ...

Posted by nschmutz on Tue, 08 Mar 2022 20:46:54 +0100

LLDB: examples of common commands

Create symbolic breakpoints Click the + button in the lower left corner of Xcode Breakpoint Navigator to create different types of breakpoints: Swift Error BreakpointException Breakpoint...Symbolic Breakpoint...OpenGL ES Error BreakpointRuntime Issue BreakpointConstraint Error BreakpointTest Failure Breakpoint Although the above seven br ...

Posted by parse-error on Mon, 07 Mar 2022 16:51:12 +0100

iOS - calling Face ID and Touch ID in application

Note that many non-native iOS applications call Face ID in the application to assist login and confirm privacy operations. Here is how to call Face ID or Touch ID. Get user privacy Similar to calling location and camera, first in info Add Face ID permission in plist Privacy - Face ID Usage Description Import header file Import library fil ...

Posted by liquorvicar on Sun, 06 Mar 2022 04:52:17 +0100

Development of IOS -- Network HTTP request

I. overview Several concepts in HTTP network requestSend HTTP request in IOSHTTP request example II. Several concepts in HTTP network request 2.1 URL What is a URL The full name of URL is Uniform Resource LocatorThrough one URL, you can find the only resource on the InternetURL is the address and location of resources. Each resource on t ...

Posted by Brakanjan on Thu, 03 Mar 2022 17:47:39 +0100

Object oriented advanced level

1. Inherit //getter method, //The function is to assign the attribute passed in by the constructor to the encapsulated attribute in this class through the getter method, //Then the assigned attribute is sent out through the constructor //setter method, //The function is to call the setter method in this class through the calling method in other ...

Posted by canobi on Sat, 26 Feb 2022 05:18:32 +0100

A lightweight event delivery tool between iOS views

preface A long time ago, I saw a summary article about the responder chain and event processing mechanism based on iOS. The comment said that simple UI event processing can be carried out through this mechanism. At that time, I didn't care much and didn't have a deep understanding. Later, when I summarized this piece of content, I wrote such a ...

Posted by jimdy on Mon, 21 Feb 2022 17:24:06 +0100

Analysis of underlying principle of NSObject

NSObject is the root class of most class hierarchies in Objective-C. usually, when using NSObject objects, we will use [[NSObject alloc] init] or [NSObject new] to create object instances. Through this article, we will study the object creation process of NSObject together. initialization Call alloc mode When we call the [NSObject alloc] ...

Posted by dotMoe on Mon, 21 Feb 2022 12:14:35 +0100

[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

Chapter 13 three characteristics of object-oriented in JavaSE topic - polymorphism

1. Polymorphic introduction Meaning: method or object has many forms, which is the third feature of object-oriented. Polymorphism is based on encapsulation and inheritance; Business scenario: please write a program. There is a feed (feeding method) in the master class, which can complete the information of the director feeding animals; Trai ...

Posted by philippe2 on Wed, 09 Feb 2022 10:39:07 +0100

iOS - multithreading - GCD summary

Usage rule summary Local multiple asynchronous tasks use: queue group or enter Multiple asynchronous tasks on the network use: enter Multiple asynchronous tasks in the network depend on each other and need to be executed synchronously: semaphore Thread safety lock: semaphore Types of multithreading reference resources https://www.jianshu.co ...

Posted by timandkitty on Mon, 31 Jan 2022 07:36:27 +0100