Created
March 1, 2014 06:39
-
-
Save imalberto/9286187 to your computer and use it in GitHub Desktop.
Example of ASObject
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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