Skip to content

Instantly share code, notes, and snippets.

@richardjkeys
richardjkeys / method.m
Created October 21, 2011 07:58
Block Method Call Example
- (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");
}];