Knowledgebase: Custom Objects
Is there any analog in the Quickblox iOS SDK that doesn't require sending the whole array to the server to update one value?
Posted by on 13 January 2014 02:02 PM

Is there any analog in the Quickblox iOS SDK that doesn't require sending the whole array to the server to update one value?

If you wish to update one value and do not want to send the whole array to the server you can use the following solution:


QBCOCustomObject *object = [QBCOCustomObject customObject];
object.className = @"SuperSample";
object.ID = @"51d5a979efa357c7fa000006";
 
NSMutableDictionary *specialUpdateParams = [NSMutableDictionary dictionary];
[specialUpdateParams setObject:@"phone" forKey:@"push[interests]"];
 
[QBCustomObjects updateObject:object specialUpdateOperators:specialUpdateParams delegate:self];
 
You  can also try using these snippets https://github.com/QuickBlox/quickblox-ios-sdk/tree/master/snippets

(0 vote(s))
Helpful
Not helpful

Comments (0)
Post a new comment
 
 
Full Name:
Email:
Comments: