在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
局部变量:returnType (^blockName)(parameterTypes) = ^returnType(parameters) {...};
类属性(property):@property (nonatomic, copy) returnType (^blockName)(parameterTypes);
方法声明中的参数:- (void)someMethodThatTakesABlock:(returnType (^)(parameterTypes))blockName;
方法调用中的参数:[someObject someMethodThatTakesABlock:^returnType (parameters) {...}];
typedef的方式:typedef returnType (^TypeName)(parameterTypes);
|
请发表评论