The following code loads images that are also located on iCloud or the streams images. How can we limit the search to only images in the camera roll?
var assets = PHAsset.fetchAssetsWithMediaType(PHAssetMediaType.Image, options: nil)
The Camera Roll is a unique view that only you can see. It automatically finds and shows you every photo and video (private and public) you've ever uploaded to your account. Access the Camera Roll. Mouse over You, then click Camera Roll. Sort your photos and videos.
After adding the Camera Roll and Photo Stream albums, Apple added the following PHAssetCollectionSubtype
types in iOS 8.1:
PHAssetCollectionSubtypeAlbumMyPhotoStream
(together with PHAssetCollectionTypeAlbum
) - fetches the Photo Stream album.
PHAssetCollectionSubtypeSmartAlbumUserLibrary
(together with PHAssetCollectionTypeSmartAlbum
) - fetches the Camera Roll album.
Haven't tested if this is backward-compatible with iOS 8.0.x though.
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