标签:
李洪强iOS开发之 - block的使用
//支付block
typedef void(^invokePayBlock)(CFBaseOrderModel *model);
@property (copy, nonatomic) invokePayBlock payBlock;
-(IBAction)invokePayBlockHandler:(id)sender;
-(IBAction)invokeDelOrderBlockHandler:(id)sender;
-(IBAction)invokeReceiptBlockHandler:(id)sender;
-(IBAction)invokeRepurchaseBlockHandler:(id)sender;
-(IBAction)invokeRevaluateBlockHandler:(id)sender;
-(IBAction)invokePayBlockHandler:(id)sender
{
self.payBlock(tmpModel);
}
footerView.payBlock = ^(CFBaseOrderModel *model)
{
[weakSelf callbackPayHandler:section_];
};
标签:
原文地址:http://www.cnblogs.com/LiLihongqiang/p/5894983.html