Skip to content

Instantly share code, notes, and snippets.

@saiday
Last active December 20, 2015 05:21
Show Gist options
  • Select an option

  • Save saiday/057d09313ec1785b5be5 to your computer and use it in GitHub Desktop.

Select an option

Save saiday/057d09313ec1785b5be5 to your computer and use it in GitHub Desktop.
block example
typedef void (^GetImageSucess)(UIImage *image);
typedef void (^Failure) (NSError *error);
@interface BlockExample : NSObject
- (void)performComputation:(AudioBufferList *)bufferListInOut completionHandler:(void(^)(NSArray *fftData, BOOL isEnd))completion;
- (void)fetchImage:(NSURL *)imageURL sucess:(GetImageSucess)sucess failure:(Failure)failure;
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment