Is there a way to print value of Boolean flag in NSLog?
NSArray *array1 = [NSArray arrayWithObjects:@"todd1", @"todd2", @"todd3", nil]; bool objectMembership = [array1 containsObject:@"todd1"]; NSLog(@"%d",objectMembership); // prints 1 or 0