-ns** Overview of iOS development

Source: Internet
Author: User

In iOS development, you will often encounter an NS-beginning object, starting with the amid master history. Steve Jobs and John Scullery, amid the Lord was run out of Apple, when he made a company called NeXTSTEP, which is a set of development package is to let some scientists like, and now Mac The OS is nextstep this set of functions.
The people who develop nextstep are more narcissistic, naming all the classes in the library with NeXTSTEP initials, which is ns****. More common examples are:

NSLog
NSString
Nsinteger
Nsurl
Nsimage
...
You will often see some of the teachings used:
NSLog (@ "%d", myInt);
This sentence is mainly in the console inside the tracking use, you will see the console inside the value of the Myint (in Xcode when running the dbg window can be seen).
You can also see some classes that begin with other names, such as CF, CA, CG, UI, and so on, such as
Cfstringtokenizer, this is a participle.
Calayer This represents the layer of core animation
Cgpoint this represents a point
UIImage This means that the pictures inside the iphone

CF says Core Foundation,ca is saying that core ANIMATION,CG is saying that core Graphics,ui is the iphone's user Interface ...

-ns** Overview of iOS development

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.