标签:
returnType (^blockName)(parameterTypes) = ^returnType(parameters) {...};
@property (nonatomic, copy) returnType (^blockName)(parameterTypes);
- (void)someMethodThatTakesABlock:(returnType (^)(parameterTypes))blockName;
[someObject someMethodThatTakesABlock:^returnType (parameters) {...}];
typedef returnType (^TypeName)(parameterTypes);
TypeName blockName = ^returnType(parameters) {...};
How Do I Declare A Block in Objective-C?
标签:
原文地址:http://www.cnblogs.com/0515offer/p/4652262.html