私はアプリに取り組んでおり、フィルタリングしたい連絡先リストに取り組んでいます。したがって、quickblox のカスタム オブジェクトを使用しています。これが私のコードです。
- (NSArray *)idsFromContactListItems {
NSMustableArray *idsToFetch = [NSMustableArray new];
NSArray *contactListItems = self.contactList;
for (QBContactListItem *item in contactListItems) {
NSMutableDictionary *getRequest = [NSMutableDictionary new];
[getRequest setObject:@"personal" forKey:@"identifier"];
if ([QBCustomObjects objectsWithClassName=@"cards" extendedRequest:getRequest delegate:self]){
idsToFetch addObject:@(item.userID)];}
else {};
}
return idsToFetch;
};
私の配列 idsToFetch はすべての値を返しますが、個人用の識別子を持つカスタム オブジェクト クラスには 1 つしかありません。