Introduction to the main framework of iOS (reproduced)

Source: Internet
Author: User
<span id="Label3"></p><p><p><span style="font-size: 12px"><span style="font-size: 12px">This article is the translation of the article "sunvey the Major framworks"</span></span></p></p><p><p><span style="font-size: 12px">The framework is a directory that contains shared libraries, access to the header files of the code in the shared library, and other resource files for pictures and sounds. A method or function defined by a shared library can be called by an Application.</span></p></p><p><p><span style="font-size: 12px">iOS provides a lot of frameworks that you can call in your Application. To use a framework, you need to add it to your project before it can be used by your project. Many applications use frameworks such as foundation, UIKit, and core Graphics. Depending on the template you choose for your application, the relevant framework has been introduced AUTOMATICALLY. If the default framework does not meet the needs of your application, you can also join the required Framework.</span></p></p><p><p><span style="font-size: 12px">See what frameworks are included in the Helloworld.xcodeproj project (note: Helloworld.xcodeproj is a project in the tutorial "<em><span style="color: #494949; background: white">Your first iOS App</span></em> <span style="color: #494949; background: white"> Tutorial") </span></span></p></p><p><p><span style="font-size: 12px">1. Open the Helloworld.xcodeproj project in Xcode (if it is not yet open)</span></p></p><p><p><span style="font-size: 12px">2. Click in the Project Navigator window and click the triangle icon in front of the frameworks directory. You will see:</span></p></p><p><p><span style="font-size: 12px">uikit.framework,foundation.framework, and Coregraphics.framework.</span></p></p><p><p><span style="font-size: 12px">3. Click on the triangle in front of any of the frameworks and then click on the triangle in front of headers to see the header files in the Frame.</span></p></p><p><p><span style="font-size: 12px">Each frame corresponds to a layer in the iOS system, and each layer is built on top of the layer below it. You should try to use the upper frame instead of the frame BELOW. A higher-level framework is an object-based abstraction of the underlying Framework.</span></p></p><p><p><span style="font-size: 12px"><span style="font-size: 12px"><br></span></span></p></p><p><p><span style="font-size: 18px"><span style="color: #9bbb59"><br></span></span></p></p><span style="font-size: 18px"><span style="font-size: 18px"><span style="color: #9bbb59">IOS <span style="color: #9bbb59">apps based on <span style="color: #9bbb59">Foundation <span style="color: #9bbb59">and <span style="color: #9bbb59">UIKit <span style="color: #9bbb59">framework</span> </span> </span> </span> </span> </span></span></span><p><p><span style="font-size: 12px">when you develop a program, the main use frame is foundation and uikit, because they contain most of what you need. </span></p></p><span style="font-size: 18px; font-weight: normal"><span style="font-size: 18px; font-weight: normal">Foundation Framework provides basic system services for all applications</span></span><p><p><span style="font-size: 12px">your application, uikit, and other frameworks are built on top of the foundation Framework. The foundation framework is the encapsulation of many features in the core Foundation framework with OBJECT-C. </span></p></p><p><p><span style="font-size: 12px">Use Foundation To:</span></p></p> <ul> <ul> <li><span style="font-size: 12px">Create and manage collections, such as arrays and dictionaries</span></li> <li><span style="font-size: 12px">Access to images and other resources stored in the application</span></li> <li><span style="font-size: 12px">Creating and managing strings</span></li> <li><span style="font-size: 12px">Submit and receive notifications</span></li> <li><span style="font-size: 12px">Create date and Time objects</span></li> <li><span style="font-size: 12px">Automatically discover devices on an IP network</span></li> <li><span style="font-size: 12px">Action URL Flow</span></li> <li><span style="font-size: 12px">Execute asynchronous code</span></li> </ul> </ul><p><p>You've already used the foundation framework in the Your first IOS App. For example, You use an instance of the NSString class to store user-entered Username. You also created a string using the Initwithformat method of the foundation Framework.</p></p>Uikit Framework provides a class for creating a touch-based user interface<span style="font-size: 12px"><span style="font-size: 12px"><br></span></span><p><p>All iOS apps are based on Uikit and you can't be an application out of this Framework. Uikit provides a mechanism for drawing on-screen, capturing events, and creating common user interface Elements. Uikit also organizes complex projects by managing the components that appear on the Screen.</p></p><p><p>Use Uikit to:</p></p> <ul> <ul> <li>Build and manage your user interface</li> <li>Capturing Touch and mobile-based events</li> <li>rendering text and Web content</li> <li>Optimize your multi-tasking program</li> <li>Create a custom user interface element</li> </ul> </ul><span style="font-size: 12px"><span style="font-size: 12px">in "youfirst IOS App Tutorial", You also use Uikit. When you look at how the program works, you see the Uiapplicationmain function creates an instance of the UIApplication class that captures incoming user Events. You implement the Uitextfielddelegate protocol and then hide the keyboard when the user presses DONE. In fact, you are using Uikit to create uitextfield, UILabel, and UIButton classes on the user interface. </span></span><span style="color: #9bbb59"><span style="color: #9bbb59"><span style="font-size: 32px"><br></span></span></span><span style="color: #9bbb59"><span style="color: #9bbb59"><span style="font-size: 32px">other important frameworks you need to know</span></span></span><br><span style="font-size: 12px"><span style="font-size: 12px">Core Data, Core Graphics, core Animation, and opengles frameworks are all advanced technologies. So these frameworks are also important for you to develop applications that require time to learn and Master. </span></span><p><p></p></p>Core Data Framework tube Application data Model<p><p>Core data provides the management of objects, and with core data, you can create model objects and manage those objects. You manage the relationships between these objects and modify the Data. Core data provides the built-in Sqllite technology to efficiently manage the Information.</p></p><p><p>With Core data, you can:</p></p> <ul> <ul> <li>Storing and receiving objects in a library</li> <li>Provide the basic Undo/redo</li> <li>Automatic validation of property values</li> <li>filter, group, and optimize in-memory data</li> <li>Managing results in a table view with [nsfetchedresultscontroller]</li> <li>Support for document-based applications</li> </ul> </ul>The Core graphics framework helps you create graphics<p><p>High-quality graphics are important for all iOS applications. The simplest and quickest way to create graphics in iOS is to use the Uikit framework to provide views and controls based on pre-rendered graphics, and then have Uikit and iOS finish drawing. But when you need to create complex graphics, the Core graphics provides a lower-level library to help You.</p></p><p><p>Using the core graphics, you can:</p></p> <ul> <ul> <li>Create a path-based drawing</li> <li>anti-aliasing rendering</li> <li>Add gradients, pictures, and Colors</li> <li><span style="color: #494949">Use Coordinate-space transformations.</span></li> <li>create, display, and analyze PDF documents</li> </ul> </ul>Core animation allows you to create advanced animations and virtual effects<p><p>Uikit provides animations built on top of the core Animation. If you need more advanced capabilities than uikit, you can use the core Animation directly. The core animation interface is included in the quartz core Framework. With core animation, you can create nested objects and manipulate, rotate, scale, and transform Them. With core animation, You can create a dynamic user interface without using a lower-level graphical api, such as OpenGL ES.</p></p><p><p>With core animation you can:</p></p> <ul> <ul> <li>Create custom animations</li> <li>Adding timed functions and graphs</li> <li>Support for Frame animations</li> <li><span style="color: #494949">Specify graphical layout Constraints.</span></li> <li><span style="color: #494949">Group multiple-layer changes into anatomic update.</span></li> </ul> </ul>OpenGL ES Framework provides 3D drawing tools<p><p>OpenGL ES supports 2D and 3D drawings, and Apple's OpenGL ES implementations provide high-speed, Full-screen gaming applications via Hardware.</p></p><p><p>Using OpenGL es, you can:</p></p> <ul> <ul> <li>Creating 2D and 3D graphics</li> <li>Create more complex graphics, such as data virtualization, flight simulations, or video games</li> <li>Accessing the underlying graphics device</li> </ul> </ul><strong><strong><span style="color: #9bbb59">add additional frames to your project as needed</span></strong></strong><p><p>There are a number of frameworks that you can add to your Program. When you decide to use a framework but the project does not introduce the framework, you need to add it to your Project.</p></p><p><p><span style="font-size: 12px"><span style="font-size: 12px"><br></span></span></p></p><p><p><br></p></p><strong><strong>add another frame to the project</strong></strong><p><p>1 Opening the project</p></p><p><p>2 Click on the project name to display projects editor</p></p><p><p>3 Select the project to add a frame to in the targets list</p></p><p><p>4 Click Build phases at the top of Project editor</p></p><p><p>5 Click link Binary with libraries in front of the triangle to open this group</p></p><p><p>6 Add a frame by clicking Add (+)</p></p><p><p>7 Select a frame in the list and click the Add button</p></p><p><p>Original Link: http://blog.csdn.net/ahopedog/article/details/7416837</p></p><p><p>Introduction to the main framework of iOS (reproduced)</p></p></span>

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.