Block Pointer是这样定义的:
回传值(^名字)(参数列);
例:typedefvoid(^changeChargeValue)(NSString*value);
@property(nonatomic,strong)changeChargeValuechange;
self.change(self.telMoney);//block传值
cell.change= ^(NSString* value){
self.telMoney= value;
};
Block Pointer是这样定义的:
回传值(^名字)(参数列);
例:typedefvoid(^changeChargeValue)(NSString*value);
@property(nonatomic,strong)changeChargeValuechange;
self.change(self.telMoney);//block传值
cell.change= ^(NSString* value){
self.telMoney= value;
};
本文标题:block
本文链接:https://www.haomeiwen.com/subject/ccegdttx.html
网友评论