First, the Load method features:
1. This function is executed when the class is referenced into the program
2. The Load method of a class does not specify [super Load], the parent class receives the call, and precedes the subclass.
3. The category load will also receive calls, but sequentially after the main class's load call.
Second, Initialize method features:
1, Initialize's natural call is the first time to actively use the current class
2, and load is different, even if the subclass does not implement the Initialize method, the implementation of the parent class will inherit the call over. Note that before this, the method of the parent class has been executed once, and no super call is required.
3, if there is initialize method in the classification, initialize in the class is no longer called, call the Initialize method in the classification directly
Three, load and initialize have a lot of common characteristics, the following simple list
1, the system will be called at most once without considering the active use of the developer
2, if both the parent class and the child class are called, the call of the parent class must precede the child class
3, all for the application to run in advance to create the appropriate running
Comparison of IOS Load method and Initialize method