In iOS development, timers are often used. There are three commonly used timers in iOS: NSTimer, GCD and CADisplayLink. NSTimer Timer creation Method 1 Automatically...
Foreword Friends will inevitably encounter problems in development, how do you solve the problem? Might as well share with everyone! If any of the questions...
The computer we use requires CPU, memory, graphics card, keyboard, monitor and other components to call each other to complete any function. If these components...
KVC allows indirect manipulation of attributes of objects in the form of strings, known as Key Value Coding. First look for -set<Key>: code is assigned...
In terms of performance optimization, I wrote about iOS performance optimization before, and after the optimization, our APP, cold startup, was optimized from 2.7 seconds...
The full name of KVC is key-value Coding, which is also known as key-value Coding in Chinese. Key-value Coding is a mechanism enabled by NSKeyValueCoding...
Topic background series of articles [DoKit& Peking University topic] origin [DoKit& Peking University topic] - read small program source code (a) [DoKit& Peking University topic]...
The NSObject protocol states the following three methods for manipulating a counter to increase or decrease its value retain increasing reference count release decreasing reference...
Introduction: Through some simple understanding of OC object, class object, metaclass object structure, method call process, we can more easily understand the message mechanism of...
Apple released WidgetKit at WWDC20 this year, which allows dynamic messages and personalized content to be displayed on the iOS and iPadOS home screens. With...
Or attribute strings, which allow you to customize the appearance of the label's substring. It can scroll vertically or horizontally, and also supports zooming gestures.
Zero-based iOS development, summarize their own learning process, and problems encountered in the learning process and solutions, to prevent their own forget, monitor their own...
Class_copyPropertyList Gets all the member variables class_copyIvarList Gets all the methods class_copyMeth Gets all the protocols that are currently followed
Common implementation of Crash cannot find methods unrecognized selector sent to instance KVC Crash EXC_BAD_ACCESS Class-related crashes of the Crash collection caused by KVO
Cannot be deleted by directory. I have compiled a library that can be asynchronously deleted by directory. . Simple, convenient, fast, home iOS code farmers...
Read environment variables that affect the runtime. Run the C++ static constructor. Libc calls _objc_init() before DYLD calls our static constructor, so we have to...