You can get the Albums and Photo/video assets using <AssetsLibrary/AssetsLibrary.h>
framework :
-(void)getAlbum
{
library = [[ALAssetsLibrary alloc] init];
ALAssetsLibraryGroupsEnumerationResultsBlock listGroupBlock = ^(ALAssetsGroup *group, BOOL *stop) {
if (group)
{
[_albumsArray addObject:group];
} else {
[self.tableView performSelectorOnMainThread:@selector(reloadData) withObject:nil waitUntilDone:NO];
}
};
[library enumerateGroupsWithTypes:ALAssetsGroupAll usingBlock:listGroupBlock failureBlock:failureBlock]
}
While selecting album you will get photos/video by below method
-(void)getAssets
{
ALAssetsGroupEnumerationResultsBlock assetsEnumerationBlock = ^(ALAsset * result, NSUInteger index, BOOL *stop) {
if (result)
{
}
else
{
[self.tableView reloadData];
}
};
[_assetGroup setAssetsFilter:[ALAssetsFilter allAssets]];
[_assetGroup enumerateAssetsUsingBlock:assetsEnumerationBlock];
}
Please refer this link for more info and example with table view. Alos you can replace table view with your UICollectionView
Thanks!