IOS Foundation Framework Base class

Source: Internet
Author: User

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 of all, we understand that object-oriented and object-based, the following reference a section of the other blog's description:

"Object-oriented people are familiar with it, but it's not necessarily based on objects. The two sound like the same thing, but in fact they are very diverse. Object-based refers to: we use object encapsulation technology, data and operations bundled together, but did not reasonably use polymorphism, inheritance and other object-oriented technology for software design. The "No rational use" modifier is important, and it shows the essential differences between object-oriented and object-based.
Although, it sounds like object-oriented we are very familiar with, but as for my observation, many people who used to develop C program, when he uses object-oriented programming language (such as C + +) to develop, the program is based on objects. Or they are using object-oriented language to write process-oriented programs! ”

Quote this paragraph, should the original author request, need to affix the following reprint explanation:

original works, allow reprint, please be sure to use hyperlinks in the form of the original source of the article , author information and this statement. 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 .

This refers to the "inheritance", which involves base classes and derived classes,

Base class : through the inheritance mechanism, you can use the existing data types to define the new data types. The new data type that you define has not only the newly defined members, but also the old members. We call the existing class that is used to derive the new class to be the parent class, which is the base class.


So it's really necessary to understand what the base classes are offering before you know the power of IOS, 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 adoption of the base class related protocols, and then the runtime and reflection-related functions, and finally memory management.

There are three of them, which 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 NSNull for the set, are for nil to be the elements of the set, and the Nsvalue is to enable the scalar to function as a set element; Nsuuid, is to be able to act as a collection element of the custom object that must be implemented by the method of determining whether the object is equal, the unique value that identifies the object, and when no value is available, the UUID can be used to ensure uniqueness, but Nsuuid is also an alternative to canceling the device's unique number, but I don't think it will be built for it!


Next, we first study the nsobject of the vast majority of classes and the corresponding protocols, these protocol methods for future use is also critical, the base class to its derived classes and system runtime organically joined together, so that the power provided by IOS is in control, and can grasp its basic operating mechanism, Effectively scale. It is true that the upper can ascend to the ground.

1. NSObject base class and related agreements









Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.