block

Block Pointer是这样定义的:

回传值(^名字)(参数列);

例:typedefvoid(^changeChargeValue)(NSString*value);

@property(nonatomic,strong)changeChargeValuechange;

self.change(self.telMoney);//block传值

cell.change= ^(NSString* value){

self.telMoney= value;

};

你可能感兴趣的:(block)