BogoRechargePayMoneyCell.m 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. //
  2. // BogoRechargePayTypeCell.m
  3. // BuguLive
  4. //
  5. // Created by 宋晨光 on 2021/4/8.
  6. // Copyright © 2021 xfg. All rights reserved.
  7. //
  8. #import "BogoRechargePayMoneyCell.h"
  9. @implementation BogoRechargePayMoneyCell
  10. - (void)awakeFromNib {
  11. [super awakeFromNib];
  12. // Initialization code
  13. self.diamondBtn.spacingBetweenImageAndTitle = 5;
  14. self.diamondBtn.imagePosition = QMUIButtonImagePositionLeft;
  15. self.diamondBtn.userInteractionEnabled = NO;
  16. self.bgButton.userInteractionEnabled = NO;
  17. }
  18. - (void)setModel:(PayMoneyModel *)model{
  19. [self.diamondBtn setTitle:[NSString stringWithFormat:@"%ld",model.diamonds] forState:UIControlStateNormal];
  20. if([[[NSBundle mainBundle]bundleIdentifier] isEqualToString:@"com.zebo.zebolive"])
  21. {
  22. self.numberL.text = [NSString stringWithFormat:@"INR%@",model.iap_money];
  23. }
  24. else
  25. {
  26. self.numberL.text = [NSString stringWithFormat:@"$%@",model.iap_money];
  27. }
  28. if (model.isSelect) {
  29. [self.bgButton setBackgroundImage:[UIImage imageNamed:@"bogo_recharge_money_select"] forState:UIControlStateNormal];
  30. }else{
  31. [self.bgButton setBackgroundImage:[UIImage imageNamed:@"bogo_recharge_money_normal"] forState:UIControlStateNormal];
  32. }
  33. }
  34. @end