23. Accessing Photo Libraries

All current iOS devices come with at least one camera capable of taking photos and videos. In addition, all iOS devices can sync photos from iTunes on a computer to the Photos app and organize them in albums and events. Before iOS 4, the only method for developers to access user photos was UIImagePickerController. This approach has some drawbacks; namely, you can select only one photo at a time, and you have no control over the appearance of the UI. With the addition of the AssetsLibrary classes, Apple provides much more robust access to the user’s photos, videos, albums, and events in your app.

Get iOS Components and Frameworks: Understanding the Advanced Features of the iOS SDK now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.