I want to delete pictures using the CollectionView that is getting the photo from the directory folders since I have made sub directory to store the images.
-(void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath{
NSLog(@"ray:%d", [Trash count]);
NSString *trashBin = [Trash objectAtIndex:indexPath.row];
NSLog(@"k%@l",trashBin);
}
This is my code for delete but I have to add the file delete code which I don't know.