AuctionCell.m 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. //
  2. // AuctionCell.m
  3. // BuguLive
  4. //
  5. // Created by 岳克奎 on 16/8/10.
  6. // Copyright © 2016年 xfg. All rights reserved.
  7. //
  8. #import "AuctionCell.h"
  9. @implementation AuctionCell
  10. - (void)awakeFromNib
  11. {
  12. [super awakeFromNib];
  13. //隐藏
  14. }
  15. - (void)setBtn_Array:(NSArray *)btn_Array
  16. {
  17. _btn_Array = btn_Array;
  18. for(UIButton *btn in _btn_Array) {
  19. btn_Array = _btn_Array;
  20. //btn.layer.cornerRadius = btn.frame.size.height/2.0f;
  21. btn.layer.cornerRadius = 25.0f;
  22. btn.layer.masksToBounds = YES;
  23. btn.layer.borderColor = kAppMainColor.CGColor;
  24. btn.layer.borderWidth =1.0;
  25. btn.backgroundColor = btn.tag ==2 ? kNavBarThemeColor: kAppMainColor;
  26. [btn setTitleColor:btn.tag ==1 ?kNavBarThemeColor:kAppMainColor
  27. forState:UIControlStateNormal];
  28. if (kIsCheckingVersion()&&btn.tag == 2) {
  29. btn.hidden = YES;
  30. }
  31. if (kIsCheckingVersion()&&btn.tag == 1) {
  32. btn.hidden = YES;
  33. }
  34. }
  35. self.contentView.backgroundColor =kBackGroundColor;
  36. }
  37. - (IBAction)goNextVC:(UIButton *)sender {
  38. NSLog(@"%s",__func__);
  39. if ([self.delegate respondsToSelector:@selector(goNextVC:)]) {
  40. [self.delegate goNextVC:sender];
  41. }
  42. }
  43. - (void)setSelected:(BOOL)selected animated:(BOOL)animated {
  44. [super setSelected:selected animated:animated];
  45. // Configure the view for the selected state
  46. }
  47. @end