首页 > 其他 > 详细

Block返回值用法

时间:2021-05-20 22:32:13      阅读:17      评论:0      收藏:0      [点我收藏+]

声明如下

```

@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;

    };

}

```

Block返回值用法

原文:https://www.cnblogs.com/dushuzhong/p/14790167.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!