Created
October 21, 2011 07:58
-
-
Save richardjkeys/1303325 to your computer and use it in GitHub Desktop.
Block Method Call Example
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
- (void) buyFeature:(NSString*) featureId onComplete:(void (^)(NSString*)) completionBlock onCancelled:(void (^)(void)) cancelBlock; | |
//method call | |
[[MKStoreKit sharedManager] buyFeature:[product objectForKey:@"identifier"] onComplete:^ { | |
NSLog(@"Transaction Complete"); | |
} onCancelled:^ { | |
NSLog(@"Purchase Cancelled"); | |
}]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment