声明如下
```
@interface YYHGoodConfig : NSObject
- (YYHGoodConfig *(^)(NSString *type))activityType;
@end
```
使用如下
```
- (YYHGoodConfig *(^)(NSString *type))activityType {
return ^id(NSString *type){
self.activityType = type;
self.type = type;
[self net:type complish:^(YYHGoodTemplate *te) {
}];
return self;
};
}
```
原文:https://www.cnblogs.com/dushuzhong/p/14790167.html