YXSceneTableViewCell.m 710 B

12345678910111213141516171819202122232425262728293031323334
  1. //
  2. // YXSceneTableViewCell.m
  3. // Temperature
  4. //
  5. // Created by gtjx-z on 2025/4/8.
  6. //
  7. #import "YXSceneTableViewCell.h"
  8. @implementation YXSceneTableViewCell
  9. - (void)awakeFromNib {
  10. [super awakeFromNib];
  11. // Initialization code
  12. self.backgroundColor = [UIColor colorWithHexString:@"#F2F5FA"];
  13. [self.eventBtn addTarget:self action:@selector(eventBtnAction:) forControlEvents:UIControlEventTouchUpInside];
  14. }
  15. -(void)eventBtnAction:(UIButton *)btn
  16. {
  17. if (self.onPowerClick) {
  18. self.onPowerClick();
  19. }
  20. }
  21. - (void)setSelected:(BOOL)selected animated:(BOOL)animated {
  22. [super setSelected:selected animated:animated];
  23. // Configure the view for the selected state
  24. }
  25. @end