有没有办法在相册中获取图像文件名和图像标签?
我正在使用ALAssetsLibrary并仍在抓...
我有这个名称数组(listedName),我想在 fbFriends 数组中过滤和删除它。我该怎么做?似乎我的条款不起作用。
// add "names" to listed name array
NSMutableArray *aTempFriendList = [[NSMutableArray alloc] init];
for (int n = 0; n < [[self friendsList] count]; n++) {
NSDictionary *dFriend = [[self friendsList] objectAtIndex:n];
NSString *sName = [dFriend objectForKey:@"name"];
[aTempFriendList addObject:sName];
}
NSPredicate *predicate = [NSPredicate predicateWithFormat:@"(name not in %@)", aTempFriendList];
[fbFriends filterUsingPredicate:predicate];
Run Code Online (Sandbox Code Playgroud)