Skip to content

Instantly share code, notes, and snippets.

View daveverwer's full-sized avatar

Dave Verwer daveverwer

View GitHub Profile
@daveverwer
daveverwer / method.m
Created October 24, 2011 10:52 — forked from richardjkeys/method.m
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:^ (NSString *something) {
NSLog(@"Transaction Complete");
} onCancelled:^ {
NSLog(@"Purchase Cancelled");
}];