HomeDirectoryから複数のアイテムを削除したい。
で使用UICollectionViewしていますallowsMultipleSeletion = YES;
その後NSIndexPath、選択したアイテムをに保存しNSMutableArrayます。
このコードを使おうとしています
NSString *path = [NSHomeDirectory() stringByAppendingString:@"/Documents/Photos/"]
NSFileManager *manager = [NSFileManager defaulManager]
NSString *result = [path stringByAppendingFormat:@"%@"[manager contentsOfDirectoryAtPath:path error:nil] objectAtIndex:0];
[manager removeItemsAtPath:result];
NSIndexPath問題は、配列をどのように渡すobjectAtIndexかです。