For IOS9, the ALAsset library is deprecated. Instead, a new asset type called PHAsset was introduced in Framework Photos. You can get albums using the PHAssetCollection class.
PHFetchResult *userAlbums = [PHAssetCollection fetchAssetCollectionsWithType:PHAssetCollectionTypeAlbum subtype:PHAssetCollectionSubtypeAny options:nil]; PHFetchResult *smartAlbums = [PHAssetCollection fetchAssetCollectionsWithType:PHAssetCollectionTypeSmartAlbum subtype:PHAssetCollectionSubtypeAny options:nil];
PHAssetCollectionType defines the type of album. You can repeat the fetchResults results for each album.
[userAlbums enumerateObjectsUsingBlock:^(PHAssetCollection *collection, NSUInteger idx, BOOL *stop) {}]
The photo frame album is represented by PHAssetCollection.
Gihan source share