What's the difference between Camera Roll and Photo Library?

openfrog picture openfrog · Nov 22, 2011 · Viewed 9k times · Source

UIImagePickerController has these source type constants:

UIImagePickerControllerSourceTypePhotoLibrary

UIImagePickerControllerSourceTypeSavedPhotosAlbum

The documentation says one is for the photo library while the other is for the camera roll.

What's the exact difference between these two? Doesn't "Photo Library" contain pictures taken with the camera as well?

Answer

chown picture chown · Nov 22, 2011

From When should I use UIImagePickerControllerSourceTypePhotoLibrary instead of UIImagePickerControllerSourceTypeSavedPhotosAlbum?:

UIImagePickerControllerSourceTypePhotoLibrary references the entire photo library, letting the user choose which album. UIImagePickerControllerSourceTypeSavedPhotosAlbum goes straight to the camera roll album without giving the user a choice as to which album to choose from. They're similar, but different. You can get to the camera roll from PhotoLibrary, but you can only access the camera roll from UIImagePickerControllerSourceTypeSavedPhotosAlbum.

Reference.