I want to delete multiple items from my HomeDirectory.
I’m using UICollectionView with allowsMultipleSeletion = YES;
After that I save NSIndexPath of selected items in NSMutableArray.
I’m trying to use this code
NSString *path = [NSHomeDirectory() stringByAppendingString:@"/Documents/Photos/"]
NSFileManager *manager = [NSFileManager defaulManager]
NSString *result = [path stringByAppendingFormat:@"%@"[manager contentsOfDirectoryAtPath:path error:nil] objectAtIndex:0];
[manager removeItemsAtPath:result];
The problem is how do I pass NSIndexPath in Array on objectAtIndex?
Hi here is your code