首页 > > > Oreilly.iOS.6.Programming.Cookbook.Nov.2012.pdf

Oreilly.iOS.6.Programming.Cookbook.Nov.2012.pdf

Oreilly.iOS.6.Programming.Cookb…

上传者: hbo1 2012-12-11 评分1 评论0 下载43 收藏10 阅读量727 暂无简介 简介 举报

简介:本文档为《Oreilly.iOS.6.Programming.Cookbook.Nov.2012pdf》,可适用于手机软件领域,主题内容包含TableofContentsPrefaceAudienceOrganizationofThisBookAdditionalResourcesCon符等。

Table of Contents Preface Audience Organization of This Book Additional Resources Conventions Used in This Book Using Code Examples We’d Like to Hear from You Safari Books Online Acknowledgments Chapter 1. The Basics 1.0  Introduction 1.1  Creating a Simple iOS App in Xcode Problem Solution Discussion 1.2  Understanding Interface Builder Problem Solution Discussion See Also 1.3  Compiling iOS Apps Problem Solution Discussion See Also 1.4  Running iOS Apps on the Simulator Problem Solution Discussion See Also 1.5  Running iOS Apps on iOS Devices Problem Solution Discussion See Also 1.6  Packaging iOS Apps for Distribution Problem Solution Discussion 1.7  Declaring Variables in Objective-C Problem Solution Discussion 1.8  Allocating and Making Use of Strings Problem Solution Discussion 1.9  Comparing Values in Objective-C with an if Statement Problem Solution Discussion See Also 1.10  Implementing Loops with for Statements Problem Solution Discussion 1.11  Implementing while Loops Problem Solution Discussion See Also 1.12  Creating Custom Classes Problem Solution Discussion 1.13  Defining Functionality for Classes Problem Solution Discussion 1.14  Defining Two or More Methods with the Same Name Problem Solution Discussion See Also 1.15  Allocating and Initializing Objects Problem Solution Discussion 1.16  Adding Properties to Classes Problem Solution Discussion See Also 1.17  Moving from Manual Reference Counting to Automatic Reference Counting Problem Solution Discussion 1.18  Typecasting with Automatic Reference Counting Problem Solution Discussion See Also 1.19  Delegating Tasks with Protocols Problem Solution Discussion 1.20  Determining Whether Instance or Class Methods Are Available Problem Solution Discussion See Also 1.21  Determining Whether a Class Is Available at Runtime Problem Solution Discussion 1.22  Allocating and Making Use of Numbers Problem Solution Discussion 1.23  Allocating and Making Use of Arrays Problem Solution Discussion 1.24  Allocating and Making Use of Dictionaries Problem Solution Discussion 1.25  Allocating and Making Use of Sets Problem Solution Discussion 1.26  Creating Bundles Problem Solution Discussion 1.27  Loading Data from the Main Bundle Problem Solution Discussion See Also 1.28  Loading Data from Other Bundles Problem Solution Discussion See Also 1.29  Sending Notifications with NSNotificationCenter Problem Solution Discussion 1.30  Listening for Notifications Sent from NSNotificationCenter Problem Solution Discussion See Also Chapter 2. Implementing Controllers and Views 2.0  Introduction 2.1  Displaying Alerts with UIAlertView Problem Solution Discussion See Also 2.2  Creating and Using Switches with UISwitch Problem Solution Discussion 2.3  Customizing the UISwitch Problem Solution Discussion See Also 2.4  Picking Values with UIPickerView Problem Solution Discussion See Also 2.5  Picking the Date and Time with UIDatePicker Problem Solution Discussion 2.6  Implementing Range Pickers with UISlider Problem Solution Discussion 2.7  Customizing the UISlider Problem Solution Discussion See Also 2.8  Grouping Compact Options with UISegmentedControl Problem Solution Discussion 2.9  Customizing the UISegmentedControl Problem Solution Discussion See Also 2.10  Presenting and Managing Views with UIViewController Problem Solution Discussion See Also 2.11  Presenting Sharing Options with UIActivityViewController Problem Solution Discussion See Also 2.12  Implementing Navigation with UINavigationController Problem Solution Discussion See Also 2.13  Manipulating a Navigation Controller’s Array of View Controllers Problem Solution Discussion 2.14  Displaying an Image on a Navigation Bar Problem Solution Discussion 2.15  Adding Buttons to Navigation Bars Using UIBarButtonItem Problem Solution Discussion See Also 2.16  Presenting Multiple View Controllers with UITabBarController Problem Solution Discussion 2.17  Displaying Static Text with UILabel Problem Solution Discussion 2.18  Customizing the UILabel Problem Solution Discussion See Also 2.19  Accepting User Text Input with UITextField Problem Solution Discussion See Also 2.20  Displaying Long Lines of Text with UITextView Problem Solution Discussion 2.21  Adding Buttons to the User Interface with UIButton Problem Solution Discussion 2.22  Displaying Images with UIImageView Problem Solution Discussion 2.23  Creating Scrollable Content with UIScrollView Problem Solution Discussion 2.24  Loading Web Pages with UIWebView Problem Solution Discussion 2.25  Presenting Master-Detail Views with UISplitViewController Problem Solution Discussion 2.26  Enabling Paging with UIPageViewController Problem Solution Discussion 2.27  Displaying Popovers with UIPopoverController Problem Solution Discussion See Also 2.28  Displaying Progress with UIProgressView Problem Solution Discussion 2.29  Listening and Reacting to Keyboard Notifications Problem Solution Discussion See Also 2.30  Constructing and Displaying Styled Texts Problem Solution Discussion See Also Chapter 3. Auto Layout and the Visual Format Language 3.0  Introduction 3.1  Placing UI Components in the Center of the Screen Problem Solution Discussion See Also 3.2  Defining Horizontal and Vertical Constraints with the Visual Format Language Problem Solution Discussion See Also 3.3  Utilizing Cross View Constraints Problem Solution Discussion See Also 3.4  Configuring Auto Layout Constraints in Interface Builder Problem Solution Discussion See Also Chapter 4. Constructing and Using Table Views 4.0  Introduction 4.1  Instantiating a Table View Problem Solution Discussion 4.2  Assigning a Delegate to a Table View Problem Solution Discussion 4.3  Populating a Table View with Data Problem Solution Discussion 4.4  Receiving and Handling Table View Events Problem Solution Discussion See Also 4.5  Using Different Types of Accessories in a Table View Cell Problem Solution Discussion 4.6  Creating Custom Table View Cell Accessories Problem Solution Discussion 4.7  Displaying Hierarchical Data in Table Views Problem Solution Discussion 4.8  Enabling Swipe Deletion of Table View Cells Problem Solution Discussion 4.9  Constructing Headers and Footers in Table Views Problem Solution Discussion 4.10  Displaying Context Menus on Table View Cells Problem Solution Discussion 4.11  Moving Cells and Sections in Table Views Problem Solution Discussion 4.12  Deleting Cells and Sections from Table Views Problem Solution Discussion See Also 4.13  Utilizing the UITableViewController for Easy Creation of Table Views Problem Solution Discussion See Also 4.14  Displaying a Refresh Control for Table Views Problem Solution Discussion See Also Chapter 5. Storyboards 5.0  Introduction 5.1  Creating a Project with Storyboards Problem Solution Discussion 5.2  Adding a Navigation Controller to a Storyboard Problem Solution Discussion See Also 5.3  Passing Data From One Screen to Another Problem Solution Discussion See Also 5.4  Adding a Storyboard to an Existing Project Problem Solution Discussion Chapter 6. Concurrency 6.0  Introduction 6.1  Constructing Block Objects Problem Solution Discussion 6.2  Accessing Variables in Block Objects Problem Solution Discussion 6.3  Invoking Block Objects Problem Solution Discussion See Also 6.4  Dispatching Tasks to Grand Central Dispatch Problem Solution Discussion See Also 6.5  Performing UI-Related Tasks with GCD Problem Solution Discussion 6.6  Executing Non-UI Related Tasks Synchronously with GCD Problem Solution Discussion See Also 6.7  Executing Non-UI Related Tasks Asynchronously with GCD Problem Solution Discussion See Also 6.8  Performing Tasks After a Delay with GCD Problem Solution Discussion See Also 6.9  Performing a Task Only Once with GCD Problem Solution Discussion 6.10  Grouping Tasks Together with GCD Problem Solution Discussion See Also 6.11  Constructing Your Own Dispatch Queues with GCD Problem Solution Discussion 6.12  Running Tasks Synchronously with Operations Problem Solution Discussion See Also 6.13  Running Tasks Asynchronously with Operations Problem Solution Discussion See Also 6.14  Creating Dependency Between Operations Problem Solution Discussion See Also 6.15  Creating Timers Problem Solution Discussion 6.16  Creating Concurrency with Threads Problem Solution Discussion 6.17  Invoking Background Methods Problem Solution Discussion 6.18  Exiting Threads and Timers Problem Solution Discussion Chapter 7. Core Location and Maps 7.0  Introduction 7.1  Creating a Map View Problem Solution Discussion 7.2  Handling the Events of a Map View Problem Solution Discussion See Also 7.3  Pinpointing the Location of a Device Problem Solution Discussion 7.4  Displaying Pins on a Map View Problem Solution Discussion 7.5  Displaying Pins with Different Colors on a Map View Problem Solution Discussion 7.6  Displaying Custom Pins on a Map View Problem Solution Discussion See Also 7.7  Converting Meaningful Addresses to Longitude and Latitude Problem Solution Discussion 7.8  Converting Longitude and Latitude to a Meaningful Address Problem Solution Discussion Chapter 8. Implementing Gesture Recognizers 8.0  Introduction 8.1  Detecting Swipe Gestures Problem Solution Discussion 8.2  Detecting Rotation Gestures Problem Solution Discussion See Also 8.3  Detecting Panning and Dragging Gestures Problem Solution Discussion 8.4  Detecting Long Press Gestures Problem Solution Discussion 8.5  Detecting Tap Gestures Problem Solution Discussion 8.6  Detecting Pinch Gestures Problem Solution Discussion Chapter 9. Networking, JSON, XML, and Twitter 9.0  Introduction 9.1  Downloading Asynchronously with NSURLConnection Problem Solution Discussion 9.2  Handling Timeouts in Asynchronous Connections Problem Solution Discussion 9.3  Downloading Synchronously with NSURLConnection Problem Solution Discussion 9.4  Modifying a URL Request with NSMutableURLRequest Problem Solution Discussion 9.5  Sending HTTP GET Requests with NSURLConnection Problem Solution Discussion 9.6  Sending HTTP POST Requests with NSURLConnection Problem Solution Discussion 9.7  Sending HTTP DELETE Requests with NSURLConnection Problem Solution Discussion 9.8  Sending HTTP PUT Requests with NSURLConnection Problem Solution Discussion 9.9  Serializing Arrays and Dictionaries into JSON Problem Solution Discussion 9.10  Deserializing JSON into Arrays and Dictionaries Problem Solution Discussion See Also 9.11  Integrating Twitter Functionality into Your Apps Problem Solution Discussion 9.12  Parsing XML with NSXMLParser Problem Solution Discussion Chapter 10. Audio and Video 10.0  Introduction 10.1  Playing Audio Files Problem Solution Discussion See Also 10.2  Handling Interruptions while Playing Audio Problem Solution Discussion 10.3  Recording Audio Problem Solution Discussion See Also 10.4  Handling Interruptions while Recording Audio Problem Solution Discussion 10.5  Playing Audio over Other Active Sounds Problem Solution Discussion 10.6  Playing Video Files Problem Solution Discussion See Also 10.7  Capturing Thumbnails from a Video File Problem Solution Discussion 10.8  Accessing the Music Library Problem Solution Discussion Chapter 11. Address Book 11.0  Introduction 11.1  Requesting Access to the Address Book Problem Solution Discussion 11.2  Retrieving a Reference to an Address Book Problem Solution Discussion 11.3  Retrieving All the People in the Address Book Problem Solution Discussion See Also 11.4  Retrieving Properties of Address Book Entries Problem Solution Discussion See Also 11.5  Inserting a Person Entry into the Address Book Problem Solution Discussion 11.6  Inserting a Group Entry into the Address Book Problem Solution Discussion 11.7  Adding Persons to Groups Problem Solution Discussion See Also 11.8  Searching the Address Book Problem Solution Discussion 11.9  Retrieving and Setting a Person’s Address Book Image Problem Solution Discussion Chapter 12. Files and Folder Management 12.0  Introduction 12.1  Finding the Paths of the Most Useful Folders on Disk Problem Solution Discussion See Also 12.2  Writing to and Reading from Files Problem Solution Discussion See Also 12.3  Creating Folders on Disk Problem Solution Discussion See Also 12.4  Enumerating Files and Folders Problem Solution Discussion See Also 12.5  Deleting Files and Folders Problem Solution Discussion See Also 12.6  Securing Files on Disk Problem Solution Discussion See Also 12.7  Saving Objects to Files Problem Solution Discussion See Also Chapter 13. Camera and the Photo Library 13.0  Introduction 13.1  Detecting and Probing the Camera Problem Solution Discussion 13.2  Taking Photos with the Camera Problem Solution Discussion See Also 13.3  Taking Videos with the Camera Problem Solution Discussion See Also 13.4  Storing Photos in the Photo Library Problem Solution Discussion 13.5  Storing Videos in the Photo Library Problem Solution Discussion 13.6  Retrieving Photos and Videos from the Photo Library Problem Solution Discussion See Also 13.7  Retrieving Assets from the Assets Library Problem Solution Discussion 13.8  Editing Videos on an iOS Device Problem Solution Discussion See Also Chapter 14. Multitasking 14.0  Introduction 14.1  Detecting the Availability of Multitasking Problem Solution Discussion 14.2  Completing a Long-Running Task in the Background Problem Solution Discussion See Also 14.3  Receiving Local Notifications in the Background Problem Solution Discussion 14.4  Playing Audio in the Background Problem Solution Discussion 14.5  Handling Location Changes in the Background Problem Solution Discussion 14.6  Saving and Loading the State of Multitasking iOS Apps Problem Solution Discussion See Also 14.7  Handling Network Connections in the Background Problem Solution Discussion See Also 14.8  Handling Notifications Delivered to a Waking App Problem Solution Discussion 14.9  Responding to Changes in App Settings Problem Solution Discussion 14.10  Opting Out of Multitasking Problem Solution Discussion Chapter 15. Core Data 15.0  Introduction 15.1  Creating a Core Data Model with Xcode Problem Solution Discussion 15.2  Generating Class Files for Core Data Entities Problem Solution Discussion 15.3  Creating and Saving Data Using Core Data Problem Solution Discussion 15.4  Reading Data from Core Data Problem Solution Discussion See Also 15.5  Deleting Data from Core Data Problem Solution Discussion 15.6  Sorting Data in Core Data Problem Solution Discussion See Also 15.7  Boosting Data Access in Table Views Problem Solution Discussion 15.8  Implementing Relationships in Core Data Problem Solution Discussion Chapter 16. Dates, Calendars, and Events 16.0  Introduction 16.1  Retrieving the List of Calendars Problem Solution Discussion See Also 16.2  Adding Events to Calendars Problem Solution Discussion See Also 16.3  Accessing the Contents of Calendars Problem Solution Discussion See Also 16.4  Removing Events from Calendars Problem Solution Discussion See Also 16.5  Adding Recurring Events to Calendars Problem Solution Discussion See Also 16.6  Retrieving the Attendees of an Event Problem Solution Discussion See Also 16.7  Adding Alarms to Calendars Problem Solution Discussion See Also 16.8  Handling Event Changed Notifications Problem Solution Discussion 16.9  Presenting Event View Controllers Problem Solution Discussion See Also 16.10  Presenting Event Edit View Controllers Problem Solution Discussion See Also Chapter 17. Graphics and Animations 17.0  Introduction 17.1  Enumerating and Loading Fonts Problem Solution Discussion See Also 17.2  Drawing Text Problem Solution Discussion 17.3  Constructing, Setting, and Using Colors Problem Solution Discussion See Also 17.4  Drawing Images Problem Solution Discussion See Also 17.5  Constructing Resizable Images Problem Solution Discussion See Also 17.6  Drawing Lines Problem Solution Discussion See Also 17.7  Constructing Paths Problem Solution Discussion See Also 17.8  Drawing Rectangles Problem Solution Discussion See Also 17.9  Adding Shadows to Shapes Problem Solution Discussion 17.10  Drawing Gradients Problem Solution Discussion See Also 17.11  Displacing Shapes Drawn on Graphic Contexts Problem Solution Discussion See Also 17.12  Scaling Shapes Drawn on Graphic Contexts Problem Solution Discussion See Also 17.13  Rotating Shapes Drawn on Graphic Contexts Problem Solution Discussion See Also 17.14  Animating and Moving Views Problem Solution Discussion 17.15  Animating and Scaling Views Problem Solution Discussion See Also 17.16  Animating and Rotating Views Problem Solution Discussion See Also Chapter 18. Core Motion 18.0  Introduction 18.1  Detecting the Availability of an Accelerometer Problem Solution Discussion See Also 18.2  Detecting the Availability of a Gyroscope Problem Solution Discussion See Also 18.3  Retrieving Accelerometer Data Problem Solution Discussion See Also 18.4  Detecting Shakes on an iOS Device Problem Solution Discussion 18.5  Retrieving Gyroscope Data Problem Solution Discussion See Also Chapter 19. iCloud 19.0  Introduction 19.1  Setting Up Your App for iCloud Problem Solution Discussion 19.2  Storing and Synchronizing Dictionaries in iCloud Problem Solution Discussion 19.3  Creating and Managing Folders for Apps in iCloud Problem Solution Discussion See Also 19.4  Searching for Files and Folders in iCloud Problem Solution Discussion See Also 19.5  Storing User Documents in iCloud Problem Solution Discussion See Also 19.6  Managing the State of Documents in iCloud Problem Solution Discussion See Also 19.7  Handling Conflicts in iCloud Documents Problem Solution Discussion See Also Chapter 20. Pass Kit 20.0  Introduction 20.1  Creating Pass Kit Certificates Problem Solution Discussion See Also 20.2  Creating Pass Files Problem Solution Discussion See Also 20.3  Providing Icons and Images for Passes Problem Solution Discussion See Also 20.4  Preparing Your Passes for Digital Signature Problem Solution Discussion See Also 20.5  Signing Passes Digitally Problem Solution Discussion See Also 20.6  Distributing Passes Using Email Problem Solution Discussion See Also 20.7  Distributing Passes Using Web Services Problem Solution Discussion See Also 20.8  Enabling Your iOS Apps to Access Passes on iOS Devices Problem Solution Discussion See Also 20.9  Interacting with Passbook Programmatically Problem Solution Discussion See Also Index

该用户的其他资料

  • 名称/格式
  • 评分
  • 下载次数
  • 资料大小
  • 上传时间

用户评论

0/200
    暂无评论
上传我的资料

相关资料

资料评价:

/ 976
所需积分:2 立即下载
返回
顶部
举报
资料
关闭

温馨提示

感谢您对爱问共享资料的支持,精彩活动将尽快为您呈现,敬请期待!