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?
If you haven't enabled Photo Stream syncing on your Mac/PC, you should keep the copy that is in your camera roll until you've copied it to your PC. That is the original copy, and it won't be deleted until you do it yourself.
A digital image library is a cloud-based application that provides a secure, centralized location for storing, organizing, managing, and distributing images.
Copy photos from Photo Library to Camera RollOn your iPhone, go to Photos -> Albums -> From My Mac, then select the album with the photos you need to copy to Camera Roll. In the upper-right corner, press “Select” and choose the photos you need. There is also the option Select All.
The simplest way to explain the difference between your Camera Roll and Photo Stream is that your Camera Roll is where all the pictures you've taken with your iPhone are, whereas My Photo Stream syncs only the most recent ones, so you can access them on other devices.
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.
Good luck!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With