Download

iOS 5 Core Frameworks:

Working with graphics, location, iCloud and more

This page contains various downloads used in iOS 5 Core Frameworks: Working with graphics, location, iCloud and more

by Shawn Welch. Copyright © 2012.

Buy on Amazon Buy at Peachpit Press

I am currently adding additional comments and updating the code samples for iOS 5.1 and Xcode 4.2. If you would like a download that is not available on this page, please contact me and I will email you the files personally.

Please contact me if you need these resources immediately and I will do my best to accommodate your needs!

-Shawn

Chapter 1: iOS Frameworks

There are no downloads for this chapter

 

Chapter 2: Core Data

Page 34, 36, 49: DemoCoreData.zip

Click here to learn more

This example demonstrates the Core Data stack as a singleton object in a fictional “Reminders” app. Notice that the because the model is a singleton object, we interact with the context using performBlock. With this style set up, you can access your model easily from any controller or app delegate without worrying about concurrency issues. This same project is used (with minor changes) for the iCloud demo in Chapter 3.

Chapter 3: iCloud

Important Configuration Information

Examples using iCloud can only be tested on actual hardware, you will not be able to test iCloud from the iOS simulator. Additionally, you must have an iCloud account added to the device before testing.

To use the following code samples, you must create an App ID in your iOS Provisioning profile and enable that App ID to use iCloud BEFORE downloading a development mobile provisioning profile.

Please follow these steps of configuration before using iCloud on the following code samples. If you get stuck, use the contact page to ask me questions!

  1. Make sure you have created your own App ID in the iOS provisioning portal and that App ID has iCloud enabled
  2. Make sure you download a new Mobile Provisioning profile AFTER you have enabled iCloud on the App ID in the IOS Provisioning portal
  3. Make sure you change the bundle identifier and entitlements strings in the project I’m sending to you to match your specific app configuration
  4. Make sure you change the lines of code in CoreData.m to match your app’s configuration

Page 70, 75: DemoCoreData.zip

Click here to learn more

This example demonstrates the Core Data stack as a singleton object in a fictional “Reminders” app. Notice that the because the model is a singleton object, we interact with the context using performBlock. With this style set up, you can access your model easily from any controller or app delegate without worrying about concurrency issues. This same project is used (with minor changes) for the iCloud demo in Chapter 2.

Chapter 4: Core Location

Page 93, 95, 101, 109: DemoLocation.zip

Chapter 5: System Accounts and Native Twitter APIs

Page 118, 126, 131, 136, 137: DemoTwitter.zip

Chapter 6: Core Graphics

Page 155, 161: DemoCoreGraphics.zip

Chapter 7: Core Image

Page 169, 176, 181, 183, 184, 187: DemoCoreImage.zip

Core Image Bonus:

A reader asked me how to composite multiple images together using Core Image, after helping him with the code, I decided to make it available online for everyone. Enjoy!

DemoCompositing.zip

Chapter 8: Core Animation

Page 200, 208: DemoCoreAnimation.zip

Page 214, 217: CAEmitterDemo.zip

Chapter 9: Core Audio

Page 227, 231, 327, 240: DemoAudio.zip

Chapter 10: AV Foundation

Page 245, 261: DemoMPMoviePlayer.zip

Page 255: DemoImagePicker.zip

Page 263, 266, 268, 271: DemoCapture.zip

Because background content updates for Newsstand requires push notifications, I ask that readers please email me for chapter 11.