iOS代理协议

2018-12-13  本文已影响8人  DeerRun
@protocol XMGWineCellDelegate <NSObject>
@optional
- (void)wineCellDidClickPlusButton:(XMGWineCell *)cell;
- (void)wineCellDidClickMinusButton:(XMGWineCell *)cell;

@end

@interface XMGWineCell : UITableViewCell
/** 模型*/
@property (nonatomic, strong) XMGWine *wine;

/** 代理属性*/
@property (nonatomic, weak) id<XMGWineCellDelegate> delegate;

@end
上一篇 下一篇

猜你喜欢

热点阅读