Skip to content

Instantly share code, notes, and snippets.

@enigmaticape
Last active August 29, 2015 14:01
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save enigmaticape/b76ffe49212ae4d2ace9 to your computer and use it in GitHub Desktop.
Save enigmaticape/b76ffe49212ae4d2ace9 to your computer and use it in GitHub Desktop.
Adding block based interface to Store Kit SKRequest
#import <StoreKit/StoreKit.h>
typedef void(^SKRequestCompletion)(SKRequest * request, NSError * error);
@interface SKRequest (Blocks) <SKRequestDelegate>
- (void) startWithCompletion:(SKRequestCompletion) completion;
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment