Instantly share code, notes, and snippets.

Embed
What would you like to do?
Example of an Objective C method signature containing a block with an encapsulated type.
typedef void(^__nullable MyBlockType)(NSObject *__nullable a, NSObject *__nullable b, NSObject *__nullable c);
@interface MyClass
- (void)someMethodWithInput:(NSObject *__nonnull)input completion:(MyBlockType)completion;
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment