Home > Articles > Mobile Application Development & Programming

Learning iPad Programming: Accessing the Photo Library (Podcast Transcript)

  • Print
  • + Share This
Kirby Turner, author of Learning iPad Programming: A Hands-on Guide to Building iPad Apps with iOS 5, compares the two ways of accessing photos from the Photo Library in iOS, pointing out the advantages of the AssetsLibrary framework.
Like this article? We recommend

Hi. I'm Kirby Turner. I'm the author of the book Learning iPad Programming: A Hands-on Guide to Building iPad Apps with iOS 5. In this episode, I'm gonna talk about accessing photos from the local Photo Library.

There are two different ways you can access photos within iOS:

  • One is using the UIImagePickerController. It's a navigation controller that provides a set of screens for browsing the Photo Library. The UIImagePickerController can also be used to take still photos and video capture from the device.
  • The second way that you can access photos through the Photo Library is using the new AssetsLibrary framework. This framework was introduced in iOS 4.0, and it provides an API for accessing both photos and videos that are controlled by the Photo app. One nice thing about using the AssetsLibrary API or framework is that it's not tied to a particular user interface. So this gives you the ability to create your own user interface.

Whereas with the UIImagePickerController you're limited to selecting just a single image, by using the AssetsLibrary framework you can create your own set of screens that allow the user to select more than one image to be used within your application.

I hope you found this tip to be useful.

Kirby Turner provides a tip on how to create a universal app—one that runs natively on both the iPad and the iPhone—in "Learning iPad Programming: Tips for Writing a Universal App."

For more information, visit onpodcastweekly.com and subscribe to all our podcasts. Brought to you by the publishing imprints and information portal of Pearson Education.

  • + Share This
  • 🔖 Save To Your Account