Skip to content

Instantly share code, notes, and snippets.

@imalberto
Created March 1, 2014 06:39
Show Gist options
  • Save imalberto/9286187 to your computer and use it in GitHub Desktop.
Save imalberto/9286187 to your computer and use it in GitHub Desktop.
Example of ASObject
// ASObject
// ASQuery
ASQuery *query = [ASQuery queryWithClassName:@"AppInfo"];
[query getObjectInBackgroundWithId:@"XX" block:^(ASObject *appInfo, NSError *error) {
NSLog(@"error");
NSInteger dv = [[appInfo objectForKey:@"dv"] intValue];
NSString *message = [[appInfo objectForKey:@"message"] intValue];
appInfo.objectId;
appInfo.updatedAt;
appInfo.createdAt;
[appInfo refresh];
}];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment