I have an Custom Collection View with Cells. Here is my CollectionView code.
- (UICollectionViewCell *)collectionView:(UICollectionView *)cv cellForItemAtIndexPath:(NSIndexPath *)indexPath;
{
Cell *cell = [cv dequeueReusableCellWithReuseIdentifier:@"MY_CELL" forIndexPath:indexPath];
return cell;
}
I want to get images from Camera Roll & display in these cells. How can I get Camera Roll images to view in this Cell? Should I use an array to store names of the images & then show them in the Cell? Can anyone please give me a solution with a code.
You can get the Albums and Photo/video assets using
<AssetsLibrary/AssetsLibrary.h>
framework :While selecting album you will get photos/video by below method
Please refer this link for more info and example with table view. Alos you can replace table view with your
UICollectionView
Thanks!