Revision: 70200
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at December 10, 2015 02:22 by TenDegrees
Initial Code
static bool groupSearchIsOn = YES; [self searchUnity:self.contactSearchBar.text withCompletionBlock:^(NSArray * array, bool success, NSString * errorMessage) { if(success && ![self.contactSearchBar.text isEqualToString:@""]) { if(array) { NSMutableArray *temp = [[NSMutableArray alloc]init]; for(NSObject *object in array) { if(groupSearchIsOn) { if(((Entity *)object).isGroup) { [temp addObject:object]; } } else { if(!((Entity *)object).isGroup) { if(![self.allContacts objectForKey:[NSNumber numberWithInt:((Entity *)object).entityId]]) { [temp addObject:object]; } } } }
Initial URL
Initial Description
Using the searchUnity function to read groups and contacts from a Unity server based on a search string.
Initial Title
Searching for Groups and Contacts in Unity
Initial Tags
search
Initial Language
Objective C