iOS4编程Cookbook
《iOS4编程Cookbook》是2011年东南大学出版社出版的图书,作者是娜哈樊迪普尔。本书中可以找到如何使用iOSSDK4的开发框架和诸如Cocoa、Obiective-c、XCode和Intei-faceBuilder等技术。
基本介绍
- 书名:iOS4编程Cookbook
- 作者:娜哈樊迪普尔
- ISBN:9787564126858
- 定价:98.00元
- 出版社:?>东南大学出版社
- 出版时间: 2011年5月1日
- 开本:16开
内容简介
你能够在iOS平台上创建各种令人讚叹的套用——而且每一种套用都解决了不同的问题。通过《iOS4编Cookbook(影印版)》的案例,你将不再停留在理论阶段,而是着手解决各种你在为iPhone、iPad和iPodtouch编写套用时很有可能面临的令人烦恼的现实问题。每个案例都提供了清晰的解决方案和你可以直接使用的示例代码。无论你对iOS开发的了解有多少,你都会从本书找到你在开发过程中每个阶段——从初始的构思阶段到项目完成——所希望获得的帮助。
作者简介
作者:(英)娜哈樊迪普尔
图书目录
Preface1. Working with Objects1.1 Implementing and Using Custom Objects1.2 Allocating and Initializing Objects1.3 Defining Two or More Methods with the Same Namein an Object1.4 Defining and Accessing Properties1.5 Managing Properties Manually1.6 Reusing a Block of Code1.7 Communicating With Objects1.8 Invoking the Selectors of an Object Dynamically1.9 Managing Memory with the iOS SDK1.10 Managing Untyped Objects2. Implementing Controllers and Views2.1 Getting and Using the Application Delegate2.2 Managing the Views in Your Application2.3 Creating Your Application's GUI2.4 Making Your View Controller Available at Runtime2.5 Using a View in Your Application's GUI2.6 Managing Master-Detail Views2.7 Managing Multiple Views2.8 Incorporating and Using Models in the GUI2.9 Implementing Navigation Bars2.10 Switching from One View to Another2.11 Setting the Title on a Navigation Bar2.12 Displaying an Image for the Title of the Navigation Bar2.13 Creating and Managing Buttons on a Navigation Bar2.14 Removing a View from a Navigation Controller2.15 Manipulating a Navigation Controller's Array ofView Controllers2.16 Incorporating a Tab Bar into Your Application2.17 Pop Up Additional Information over iPad UI Elements3. Constructing and Using Table Views3.1 Creating a Table View Using Interface Builder3.2 Creating a Table View Using Code3.3 Assigning an Event Handler to a Table View UsingInterface Builder3.4 Assigning an Event Handler to a Table View Using Xcode3.5 Populating a Table View with Data3.6 Receiving and Handling Table View Events3.7 Using Different Types of Accessories iri a Table View3.8 Creating Custom Table View Accessories3.9 Customizing the Appearance of a Table View's Contents3.10 Displaying Hierarchical Data3.11 Effectively Managing Memory with Table Views3.12 Editing and Moving Data in a Table View3.13 Enabling Swipe Deletion3.14 Grouping Data4. Core Location and Maps4.1 Creating a Map Using Interface Builder4.2 Creating a Map Using Code4.3 Handling the Events of a Map4.4 Pinpointing a Device's Location4.5 Displaying Built-in Pins on a Map View
4.6 Displaying Pins with Different Colors on a Map View4.7 Creating and Displaying Custom Pins on a Map View4.8 Retrieving Meaningful Addresses Using Spatial Coordinates4.9 Retrieving Spatial Coordinates Using Meaningful Addresses5. Implementing Gesture Recognizers5.1 Detecting Swipe Gestures5.2 Reacting to Rotation Gestures5.3 Detecting Panning and Dragging Gestures5.4 Detecting Long Press Gestures5.5 Responding to Tap Gestures5.6 Responding to Pinch Gestures6. Networking and XMk6.1 Opening and Reading a Local XML File6.2 Parsing an XML File into Objects6.3 Downloading Files Synchronously6.4 Downloading Files Asynchronously6.5 Reading and Parsing Remote XML Files6.6 Caching Files in Memory6.7 Caching Files on Disk7. Operations, Threads, and Timers7.1 Running Tasks Synchronously7.2 Running Tasks Asynchronously7.3 Creating a Dependency Between Tasks7.4 Performing a Task After a Delay7.5 Performing Periodic Tasks7.6 Performing Periodic Tasks Efficiently7.7 Initializing Threads Implicitly7.8 Exiting Threads and Timers7.9 Avoiding Memory Leaks in Threads8. Audio and Video ;...8.1 Playing Audio Files8.2 Handling Interruptions While Playing Audio Files8.3 Recording Audio Files8.4 Handling Interruptions While Recording Audio Files
8.5 Playing Audio over Other Sounds That Are Playing8.6 Playing Video Files8.7 Capturing Thumbnails from a Video File Asynchronously8.8 Accessing the iPod Library in Response to a User Request9. Address Book9.1 Accessing the Address Book9.2 Retrieving All the People in the Address Book9.3 Retrieving Properties of Address Book Entries9.4 Inserting a Person Entry in the User's Address Book9.5 Inserting a Group Entry in the User's Address Book9.6 Adding Persons to Groups9.7 Searching in the Address Book9.8 Retrieving and Setting a Person's Address Book Image10. Camera and the Photo Library10.1 Detecting and Probing the Camera10.2 Taking Photos with the Camera10.3 Taking Videos with the Camera10.4 Storing Photos in the Photo Library10.5 Storing Videos in the Photo Library10.6 Retrieving Photos and Videos from the Photo Library10.7 Retrieving Assets from the Assets Library10.8 Editing Videos on an iOS Device11. Multitasking11.1 Detecting the Availability of Multitasking11.2 Completing a Long-Running Task in the Background11.3 Receiving Local Notifications in the Background11.4 Playing Audio in the Background11.5 Handling Location Changes in the Background11.6 Saving and Loading the State of a Multitasking iOS Application
11.7 Handling Network Connections in the Background11.8 Handling Notifications Delivered to a Waking Application11.9 Handling Locale Changes in the Background11.10 Responding to Changes in an Application's Settings11.11 Opting Out of Background Execution12. Core Data12.1 Creating a Core Data Model with Xcode12.2 Creating and Using Core Data Model Classes12.3 Creating and Saving Data Using Core Data12.4 Loading Data Using Core Data12.5 Deleting Data Using Core Data12.6 Sorting Data Using Core Data12.7 Boosting Data Access in Table Views12.8 Implementing Relationships with Core Data13. Event Kit13.1 Retrieving the List of Calendars13.2 Adding Events to Calendars13.3 Accessing the Contents of Calendars13.4 Removing Events from Calendars13.5 Adding Recurring Events to Calendars13.6 Retrieving the Attendees of an Event13.7 Adding Alarms to Calendars13.8 Handling Event Changed Notifications13.9 Presenting Event View Controllers13.10 Presenting Event Edit View Controllers14. Graphics14.1 Drawing Basic Shapes on a Graphics Context14.2 Drawing Paths on a Graphics Context14.3 Drawing Images on a Graphics Context14.4 Capturing the Screen Contents into an Image
14.5 Drawing Text with Core Graphics15. Core Motion15.1 Detecting the Availability of an Accelerometer15.2 Detecting the Availability of a Gyroscope15.3 Retrieving Accelerometer Data15.4 Detecting a Shake on an iOS Device15.5 Retrieving Gyroscope DataIndex