Created
October 18, 2011 16:12
-
-
Save greenisus/1295843 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
RSServer *server = [RSServer blank]; | |
server.name = @"ck-test"; | |
server.flavorId = [[RSFlavor first] id]; | |
server.imageId = [[RSImage first] id]; | |
[server post:nil completionBlock:^(CKResult *result) { | |
if ([result isSuccess]) { | |
[self alert:@"success!"]; | |
} else { | |
[self alert:@"fail in completionBlock!"]; | |
} | |
} errorBlock:^(CKResult *result) { | |
[self alert:@"fail in errorBlock!"]; | |
}]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment