LLDB: installation and use of Chisel
Introduction to Chisel
What is Chisel? Chisel is an open-source set of LLDB commands from Facebook to assist developers in debugging iOS applications. The commands in chisel are run based on the python script interpreter supported by LLDB. That is to say: chisel is actually a collection of Python scripts. These Python scripts splice comma ...
Added by eddedwards on Sat, 05 Mar 2022 08:01:43 +0200
Principle of auto release pool page
The entry of all app s is a main function
int main(int argc, char * argv[]) {
@autoreleasepool {
return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
}
}
It can be found that the entire iOS application is contained in an automatic release pool block@autoreleasepool {} is essentially a structure: ...
Added by treybraid on Sat, 05 Mar 2022 02:27:48 +0200
Application of multithreading in iOS development
1, Foreword
Multithreading schemes that can be used in iOS development include:
pthread: a cross platform multithreading solution implemented in pure C language, which is difficult to use. It is not recommended on iOS platform.NSThread: the object-oriented thread object under iOS platform is relatively easy to use, but it needs developers to ...
Added by matthewod on Sun, 20 Feb 2022 20:47:02 +0200
GCD series I use queues
GCD queue usage
file
First look at the official documents. DispatchQueue is a class object, which inherits from DispatchObject; DispatchObject implements OS_ Method in object, guess OS_object may be a protocol, which is not found in the document First look at DispatchObject:
func activate()
Activates the dispatch object.
func resume()
...
Added by robembra on Fri, 18 Feb 2022 20:43:26 +0200
[Mac OS development] use gcd to quickly sort the array, and use gcd multithreading to find the maximum value in the array
Function of this example: use gcd to sort an array with 40000 numbers, and the numbers in the array are randomly generated
The generated array code is as follows
_numsMutableArray = [[NSMutableArray alloc] init];
for (int i = 0; i < 40000; i++) {
NSNumber *temp = [NSNumber numberWithInt:arc4random_uniform(1000000)];
...
Added by k.soule on Fri, 11 Feb 2022 17:44:45 +0200
iOS development NSTimer timer
preface
In the process of iOS development, we often use three kinds of timers: NSTimer timer, CADisplayLink timer and GCD timer. This article only introduces NSTimer timer.
What is NSTimer
runLoop literally means a loop in operation. Its function is to keep the APP running continuously and deal with various events of the APP, such as cli ...
Added by rashmi_k28 on Tue, 08 Feb 2022 12:50:12 +0200
[iOS] - protocol and entrustment
Role of the agreement:
Similar to the interface, it is used to define the specifications that multiple classes should follow, but it will not provide the implementation of these methods, and the implementation of methods is left to the class.
Abstract relationships between specifications, classes, and instances
As can be seen from the figu ...
Added by rix on Tue, 01 Feb 2022 19:24:38 +0200
Principle and application summary of IOS runloop
Runloop: run loop - dead loop
Main purpose: improve performance, do what you have and sleep when you have nothing. reference resources https://blog.csdn.net/callauxiliary/article/details/107419854
Main application
1. Ensure that the thread runs all the time, and the processing of events, such as touch events and clock events, is completed by ...
Added by ShanesProjects on Mon, 31 Jan 2022 11:39:38 +0200
Suggestions on data types in the [OC/Swift hybrid] interface: use level analysis
1, Foreword
As mentioned above, under the OC/Swift mix, the following suggestions are made for the data types of attributes or parameters:
1. Use immutable types as much as possible and immutable types as little as possible. (suggestions: NSString *, NSArray *, - NSDictionary *)2. Use generics as much as possible to specify the type of el ...
Added by Dan400007 on Sat, 29 Jan 2022 12:40:12 +0200
Take you to a Netease cloud music home page (Part I)
preface
Hello, everyone, I've been learning to encode with Swift recently. Because many previous projects were implemented with OC, I'm still in the stage of learning about Swift. In order to improve my learning efficiency, I will set a short-term goal for myself every time. This time, in order to speed up my starting Swift, my goal is to comp ...
Added by zxiny_chin on Sat, 15 Jan 2022 23:28:34 +0200