Introduction to iOS library genealogy

Source: Internet
Author: User

IOSDevelopment LibraryGenealogyIntroduction is the content to be introduced in this article. This article makes it clear many disks during the learning process. Let's first look at the content.

Foundation/Core Foundation/Carbon/Cocoa Touch/Toll Free Bridging just look at these tm names and jb is dizzy. Are you also disgusted with these things? Do you also find that when you develop the same function, you can also access from database a, or from database B? Although the mouse can be captured, Which cat is a string? Which cat is a purebred Persian cat?

This article is aboutGenealogy.

Foundation: The core library of Objective-C. Write a library that the Objective-C program must contain. Provides basic data types and services in Objective-C. He is actuallyCocoaMore intimate, according to the level andCocoaIs a layer.

Core Foundation: a c library close to the system, allowing callers to conveniently access system-level content. Foundation andCocoaSome features are encapsulated, which is why there are a variety of solutions to accomplish the same thing. I personally feel that this is more powerful than the Foundation function. After all, it is closer to the underlying nature and the efficiency will be higher. In addition, the Foundation must interact with Toll Free Bridging to better call the Core Foundation.

Carbon:IOSIt doesn't matter much. It must be used before Mac OSX in earlier versions. It provides some graphics libraries and many frameworks.

Cocoa: This is a new thing that appears in Mac OS x. It appears on Mac OS X together with Carbon.

CocoaTouch: YesCocoaInIOSThe corresponding library on the mobile platform has been optimized a lot. For example, the GC is not optimized, because the efficient GC is not in line with the style of the mobile platform, because the mark method is used, so the memory fragments generated cannot cope with all mobile development situations ).

Toll Free Bridging: From the name, we can see what Bridge is. We can build a Bridge between Foundation and Core Foundation for calling.

Attach a diagram for your understanding:

I have heard the above and some people understand it. Thank you for your correction.

Summary:IOSDevelopment LibraryGenealogyThe introduction is complete. I hope this article will help you!

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.