STTableSaleBuyBtnCell.m 938 B

12345678910111213141516171819202122232425262728293031323334
  1. //
  2. // STTableSaleBuyBtnCell.m
  3. // BuguLive
  4. //
  5. // Created by 岳克奎 on 17/4/21.
  6. // Copyright © 2017年 xfg. All rights reserved.
  7. //
  8. #import "STTableSaleBuyBtnCell.h"
  9. @implementation STTableSaleBuyBtnCell
  10. - (void)awakeFromNib {
  11. [super awakeFromNib];
  12. // Initialization code
  13. _leftBtn.layer.cornerRadius = 3;
  14. _leftBtn.layer.masksToBounds = YES;
  15. _rightBtn.layer.cornerRadius = 3;
  16. _rightBtn.layer.masksToBounds = YES;
  17. }
  18. - (void)setSelected:(BOOL)selected animated:(BOOL)animated {
  19. [super setSelected:selected animated:animated];
  20. // Configure the view for the selected state
  21. }
  22. - (IBAction)btnClick:(UIButton *)sender {
  23. if (_delegate &&[_delegate respondsToSelector:@selector(showSTTableSaleBuyBtnCell:andClickBtn:)]) {
  24. [_delegate showSTTableSaleBuyBtnCell:self andClickBtn:sender];
  25. }
  26. }
  27. -(void)setDelegate:(id<STTableSaleBuyBtnCellDelegate>)delegate{
  28. _delegate = delegate;
  29. }
  30. @end