iOS Application Programming Guide

时间:2018-08-11 09:33:04
【文件属性】:

文件名称:iOS Application Programming Guide

文件大小:3.77MB

文件格式:PDF

更新时间:2018-08-11 09:33:04

iOS Application Programming Guide

iOS应用程序编程指南 英文版 Contents Introduction About iOS Application Design 9 Understanding the iOS Runtime Environment 10 Designing the Core of Your Application 10 Supporting Common Application Behaviors 10 Executing Code in the Background 10 Meeting the App Store and System Requirements 11 Tuning Performance for the Underlying Device 11 See Also 11 Chapter 1 The Application Runtime Environment 13 Fast Launch, Short Use 13 Specialized System Behaviors 13 The Virtual Memory System 13 The Automatic Sleep Timer 14 Multitasking Support 14 Security 14 The Application Sandbox 14 File Protection 15 Keychain Data 16 The File System 16 A Few Important Application Directories 16 A Case-Sensitive File System 18 Sharing Files with the User’s Desktop Computer 18 Backup and Restore 18 What Is Backed Up? 18 Files Saved During Application Updates 19 iOS Simulator 19 Determining the Available Hardware Support 19 Chapter 2 The Core Application Design 23 Fundamental Design Patterns 23 The Core Application Objects 24 The Application Life Cycle 27 The main Function 28 The Application Delegate 29 Understanding an Application’s States and Transitions 29 Multitasking 36 Checklist for Supporting Multitasking 37 Being a Responsible, Multitasking-Aware Application 37 3 2011-02-24 | © 2011 Apple Inc. All Rights Reserved. Responding to System Changes While in the Background 39 Opting Out of Background Execution 41 Windows, Views, and View Controllers 41 The Event-Handling System 42 The Graphics and Drawing System 44 The Text System 44 Audio and Video Support 46 Integration with the Hardware and System Applications 46 Chapter 3 Implementing Common Application Behaviors 49 Preserving the State of Your Application’s User Interface 49 Launching in Landscape Mode 50 Adding Support for AirPlay 50 Files and the File System 51 Getting Paths to Standard Application Directories 51 Sharing Files with the User 52 Working with Protected Files 53 Opening Files Whose Type Is Unknown 54 Implementing Support for Custom File Formats 56 Communicating with Other Applications 58 Implementing Custom URL Schemes 59 Registering Custom URL Schemes 59 Handling URL Requests 60 Displaying Application Preferences 62 Turning Off Screen Locking 63 Chapter 4 Executing Code in the Background 65 Determining Whether Multitasking Support Is Available 65 Declaring the Background Tasks You Support 65 Implementing Long-Running Background Tasks 66 Tracking the User’s Location 66 Playing Background Audio 67 Implementing a VoIP Application 68 Completing a Finite-Length Task in the Background 70 Scheduling the Delivery of Local Notifications 71 Chapter 5 Implementing Application Preferences 73 The Settings Application Interface 73 The Settings Bundle 75 The Settings Page File Format 76 Hierarchical Preferences 76 Localized Resources 77 Creating and Modifying the Settings Bundle 78 4 2011-02-


网友评论