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
かです。