IOS Foundation Framework Base class
The beautiful Life of the Sun Vulcan (http://blog.csdn.net/opengl_es)
This article follows "Attribution-non-commercial use-consistent" authoring public agreement
Reprint Please keep this sentence: Sun Vulcan's Beautiful Life-this blog focuses on Agile development and mobile and IoT device research: IOS, Android, HTML5, Arduino, Pcduino , Otherwise, the article from this blog refused to reprint or re-reproduced, thank you for your cooperation.
Base class |
Title |
Topic |
Date |
NSObject Class Reference |
Data Types & Collections |
Minor Change |
NSObject Protocol Reference |
Data Types & Collections |
Minor Change |
NSNull Class Reference |
Data Types & Collections |
Minor Change |
Nsvalue Class Reference |
Data Types & Collections |
Minor Change |
Nsuuid Class Reference |
Data Types & Collections |
Minor Change |
Nscopying Protocol Reference |
- |
Minor Change |
Nsmutablecopying Protocol Reference |
- |
Minor Change |
Nsmethodsignature Class Reference |
Data Types & Collections |
Minor Change |
Objective-c Runtime Reference |
Objective-c |
Minor Change |
Advanced Memory Management Programming Guide |
Performance |
Minor Change |
NSAutoreleasePool Class Reference |
- |
Minor Change |
First, let's take a look. Object-oriented and object-based. Here's a quote from someone else's blog:
"Object-oriented people are very familiar with it, but it's not necessarily based on objects.
Both sound like the same thing, but they are very diverse. Object-based means: We use object Encapsulation technology to bundle data and operations together, but do not reasonably use multi-state, inheritance and other object-oriented technology for software design. The "no reasonable use" of this modification is very important. It shows the essential differences between object-oriented and object-based.
Although. Sounds object-oriented we are very familiar with, but as far as I can see, very many people who have been involved in C program development, when he adopted the object-oriented programming language (such as C + +) for development, the written program is based on the object.
Or they're using an object-oriented language to write process-oriented programs! ”
Reference to this paragraph shall be required by the original author. Should be affixed with the following reprint instructions:
original works. When reproduced, please be sure to indicate the original source , author information and this statement in the form of hyperlinks. Otherwise, the legal liability will be investigated. http://yunli.blog.51cto.com/831344/184846
In the field of software design. " object -oriented " refers to the design method of encapsulation , inheritance and polymorphism in programming .
The "inheritance" mentioned in this section relates to the base class and derived classes,
Base class : you can define a new data type by using the existing data type through the inheritance mechanism. The new data types defined not only have the newly defined members, but also have the old members at the same time.
We call the existing class that is used to derive the new class to be the parent class, which is the base class.
In that sense, it is indeed necessary. Before you know the power of IOS, learn what features the base class provides so you can get up and down.
The above list of contents, can be broadly categorized into several parts, one is NSObject base class related, one is the base class related protocol, and then the implementation and reflection-related functions, and finally memory management.
And there are three of them. Should be part of the collection, but given that it is only the preparation phase, it is good to put it into the base class section:
NSNull Class Reference |
Data Types & Collections |
Minor Change |
Nsvalue Class Reference |
Data Types & Collections |
Minor Change |
Nsuuid Class Reference |
Data Types & Collections |
Minor Change |
These three classes, which should be said to be set, are NSNull for nil to be a set element. Nsvalue is intended to enable scalar energy as a set element, while Nsuuid. It is a unique value that identifies the object that is to be returned by a method of determining whether an object must be implemented as a collection element's own defined object, and when no value is available, the UUID can be used to ensure uniqueness. Just Nsuuid is also an alternative to cancelling the device's unique number, but I don't think it's necessarily born for it!
Next. First, we study the basic classes of NSObject and the corresponding protocols. These protocol methods are also critical for future use, when the base class organically joins its derived classes with system execution, so that the powerful delivery of IOS will be effective in the case of hands and the ability to master the basic execution mechanism. Turn, go up to heaven, next can be raised.
1. NSObject base class and related agreements
IOS Foundation Framework Base class