I am working on an app and I am working on a contact list that I want to get filtered. Therefore I am using custom objects of quickblox, here is my code:
- (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;
};
My array idsToFetch returns all the values but there is only 1 in my custom object class that has personal in identifier.