AuctionAloneCell.m 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. //
  2. // AuctionAloneCell.m
  3. // BuguLive
  4. //
  5. // Created by hym on 2016/12/1.
  6. // Copyright © 2016年 xfg. All rights reserved.
  7. //
  8. #import "AuctionAloneCell.h"
  9. static NSString *const ID = @"AuctionAloneCell";
  10. @interface AuctionAloneCell()
  11. @property (weak, nonatomic) IBOutlet UIButton *btnAuction;
  12. @end
  13. @implementation AuctionAloneCell
  14. - (void)awakeFromNib
  15. {
  16. [super awakeFromNib];
  17. // self.btnAuction.layer.cornerRadius = 25.0f;
  18. // self.btnAuction.layer.masksToBounds = YES;
  19. // self.btnAuction.layer.borderColor = kAppMainColor.CGColor;
  20. // self.btnAuction.layer.borderWidth = 1.0;
  21. // self.btnAuction.layer.borderColor = [UIColor colorWithHexString:@"#9F23FE"].CGColor;
  22. // self.btnAuction.layer.borderWidth = 1.0f;
  23. // self.btnAuction.backgroundColor = kWhiteColor;
  24. // Main_textColor;
  25. [self.btnAuction setTitleColor:UIColor.whiteColor forState:UIControlStateNormal];
  26. // self.contentView.backgroundColor = kBackGroundColor;
  27. }
  28. + (instancetype)cellWithTbaleview:(UITableView *)newTableview {
  29. AuctionAloneCell *cell = [newTableview dequeueReusableCellWithIdentifier:ID];
  30. if (!cell) {
  31. cell = [[[NSBundle mainBundle]loadNibNamed:NSStringFromClass(self) owner:nil options:nil]lastObject];
  32. cell.selectionStyle = UITableViewCellSelectionStyleNone;
  33. }
  34. return cell;
  35. }
  36. - (void)setSelected:(BOOL)selected animated:(BOOL)animated {
  37. [super setSelected:selected animated:animated];
  38. }
  39. - (IBAction)onClickAuction:(id)sender {
  40. if ([self.delegate respondsToSelector:@selector(buttonActionGoNetVC:)]) {
  41. [self.delegate buttonActionGoNetVC:self.tile];
  42. }
  43. }
  44. - (void)setTile:(NSString *)tile {
  45. _tile = tile;
  46. [self.btnAuction setTitle:tile forState:UIControlStateNormal];
  47. }
  48. @end