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?
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
.