IOS API Overview

Source: Internet
Author: User
<span id="Label3"></p><p><p>Original: http://www.bubuko.com/infodetail-650437.html</p></p><p><p>Introduction to IOS APIs</p></p><p><p>Transferred from: http://book.2cto.com/201307/27019.html</p></p><p><p><br><span id="3_nwp">Apple's iOS API has changed a lot between different versions, and this book is based on iOS 6. In this section, we describe what APIs are available in iOS 6, How to use the Help documentation for these apis, and how to use the official Case.<br>2.6.1 API Overview<br>The overall architecture of ios, shown in Figure 2-40, is divided into 4 layers Of--cocoa Touch layer, Media layer, Core Services layer and core OS layer, which provides an overview of these 4 layers.<br><br>Figure 2-40 iOS Overall architecture diagram<br>1. Cocoa Touch Layer<br>This layer provides basic system services for building iOS apps (such as multitasking, touch input and push notifications, etc.) and key frameworks (see table 2-3).<br><br>Table 2-3 Cocoa Touch layer included frame</span></p></p> <table border="1" cellspacing="0" cellpadding="0" align="center"> <tbody> <tr> <td>Framework</td> <td>Prefix</td> <td>Description</td> </tr> <tr> <td>Address Book UI</td> <td>Ab</td> <td>Access User's Contact information</td> </tr> <tr> <td>Event Kit UI</td> <td>EK</td> <td>Accessing the User's calendar event data</td> </tr> <tr> <td>Game Kit</td> <td>Gk</td> <td>Provides an API for Peer-to-peer network communication</td> </tr> <tr> <td>Iad</td> <td>AD</td> <td>Embed ads in your app</td> </tr> <tr> <td>Map Kit</td> <td>Mk</td> <td>Embed maps and geographic information encodings in your application</td> </tr> <tr> <td>Message UI</td> <td>Mf</td> <td>Provides APIs related to sending e-mail</td> </tr> <tr> <td>Twitter</td> <td>TW</td> <td>Provides an interface for sending Twitter</td> </tr> <tr> <td>UIKit</td> <td>Ui</td> <td>Providing UI Classes</td> </tr> </tbody> </table><p><p>2. Media layer<br>The media layer provides graphics, audio, video, and Airplay technologies, including a framework as shown in table 2-4.<br><br>Table 2-4 The media layer includes the framework</p></p> <table border="1" cellspacing="0" cellpadding="0" align="center"> <tbody> <tr> <td>Framework</td> <td>Prefix</td> <td>Description</td> </tr> <tr> <td>Assets Library</td> <td>AL</td> <td>An interface that provides access to the User's pictures and videos</td> </tr> <tr> <td>Audiotoolbox</td> <td>Audio</td> <td>Record or play audio, audio streams, and format conversions</td> </tr> <tr> <td>AudioUnit</td> <td>Audio,au</td> <td>Provides use of built-in audio unit services, as well as audio processing modules</td> </tr> <tr> <td>AV Foundation</td> <td>Av</td> <td>Provides a objective-c interface for playing and recording audio and video</td> </tr> <tr> <td>Core Audio</td> <td>Audio</td> <td>Provides a c-language interface for recording, making, and playing audio</td> </tr> <tr> <td>Core Graphics</td> <td>Cg</td> <td>Quartz 2D Interface Available</td> </tr> <tr> <td>Core Image</td> <td>Ci</td> <td>Provides an interface for manipulating video and still images</td> </tr> <tr> <td>Core MIDI</td> <td>Midi</td> <td>Provides APIs for processing low-level MIDI data</td> </tr> <tr> <td>Core Text</td> <td>Ct</td> <td>simple, efficient C-language interface for rendering text and working with fonts</td> </tr> <tr> <td>Core Video</td> <td>CV</td> <td>Provides APIs for processing audio and video</td> </tr> <tr> <td>Image I/O</td> <td>Cg</td> <td>Contains some Read/write image data classes</td> </tr> <tr> <td>Glkit</td> <td>Glk</td> <td>Contains OBJECTIVE-C utility classes for building complex OpenGL ES applications</td> </tr> <tr> <td>Media Player</td> <td>Mp</td> <td>Includes Full-screen playback interface</td> </tr> <tr> <td>OpenAL</td> <td>AL</td> <td>C-language interface with OpenAL (cross-platform Audio)</td> </tr> <tr> <td>OpenGL ES</td> <td>Eagl,gl</td> <td>C-language interface with OpenGL ES (cross-platform 2d/3d Graphics Library)</td> </tr> <tr> <td>Quartz Core</td> <td>Ca</td> <td>Provides an animated interface class</td> </tr> </tbody> </table><p><p>3. Core services Layer<br>This layer provides technologies such as icloud, In-app purchases, sqlite databases, and XML support, including the main frameworks shown in table 2-5.<br><br>Table 2-5 Core services layer includes the framework</p></p> <table border="1" cellspacing="0" cellpadding="0" align="center"> <tbody> <tr> <td>Framework</td> <td>Prefix</td> <td>Description</td> </tr> <tr> <td>Accounts</td> <td>AC</td> <td>Twitter account for accessing users (this API is available after IOS 5)</td> </tr> <tr> <td>AddressBook</td> <td>Ab</td> <td>Access User's Contact information</td> </tr> <tr> <td>Adsupport</td> <td>As</td> <td>Get IAD ad ID</td> </tr> <tr> <td>Cfnetwork</td> <td>Cf</td> <td>Provides an API to access Wi-fi networks and cellular networks</td> </tr> <tr> <td>Core Data</td> <td>Ns</td> <td>Provides an ORM interface for managing application data</td> </tr> <tr> <td>Corefoundation</td> <td>Cf</td> <td>It is the most basic framework in iOS development, including datasets</td> </tr> <tr> <td>Core Location</td> <td>Cl</td> <td>API to provide location services</td> </tr> <tr> <td>CoreMedia</td> <td>Cm</td> <td>Provides <span id="2_nwp">the underlying media type used by the AV Foundation Framework. Precise control of the creation and presentation of audio or video</span></td> </tr> <tr> <td>Coremotion</td> <td>Cm</td> <td>Receive and process gravity accelerometers and other motion events</td> </tr> <tr> <td>Coretelephony</td> <td>Ct</td> <td>Provides an API to access basic information about a phone</td> </tr> <tr> <td>Event Kit</td> <td>EK</td> <td>Accessing the User's calendar event data</td> </tr> <tr> <td>Foundation</td> <td>Ns</td> <td>Provides OBJECTIVE-C encapsulation for many features of the core Foundation framework and is the most basic framework for OBJECTIVE-C</td> </tr> <tr> <td>Mobilecoreservices</td> <td>Ut</td> <td>Define the <span id="1_nwp">underlying type</span> used by the uniform type identifier (UTI)</td> </tr> <tr> <td>Newsstand Kit</td> <td>Nk</td> <td>API interface for downloading magazines and news in the background (iOS 5 only)</td> </tr> <tr> <td>Pass Kit</td> <td>Pk</td> <td>API to access various coupons (iOS 6 is available after this Api)</td> </tr> <tr> <td>QuickLook</td> <td>Ql</td> <td>The framework can preview file content that cannot be viewed directly, such as opening a PDF file</td> </tr> <tr> <td>Social</td> <td>Sl</td> <td>Social network access API available in China with Sina Weibo API (this API is available after IOS 6)</td> </tr> <tr> <td>Store Kit</td> <td>Sk</td> <td>Provides money transactions to handle application-built charges</td> </tr> <tr> <td>SystemConfiguration</td> <td>Sc</td> <td>Used to determine the network configuration of a device (for example, using the <span id="0_nwp">framework to determine whether wi-fi or cellular connections are in use), or to determine whether a host service can be used</span></td> </tr> </tbody> </table><p><p>4. Core OS Layer<br>This layer provides some low-level functionality, which is generally not used directly in Development. The main framework included in this layer is shown in table 2-6.<br>Table 2-6 Core OS layer included framework</p></p><p><p></p></p> <table border="1" cellspacing="0" cellpadding="0" align="center"> <tbody> <tr> <td>Framework</td> <td>Prefix</td> <td>Description</td> </tr> <tr> <td>Accelerate</td> <td>AC</td> <td>Accessing the Gravity Accelerometer API</td> </tr> <tr> <td>Core Bluetooth</td> <td>Cb</td> <td>Accessing the low energy Bluetooth device API</td> </tr> <tr> <td>External Accessory</td> <td>Ea</td> <td>Accessing the Peripheral Accessory API interface</td> </tr> <tr> <td>Generic Security Services</td> <td>Gss</td> <td>Provide a set of security-related services</td> </tr> <tr> <td>Security</td> <td>Cssm,sec</td> <td>Manage certificates, public keys, private keys, and Security trust policy APIs</td> </tr> </tbody> </table><p><p></p></p><p><p></p></p><p><p>IOS API Overview</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.