12345678910111213141516171819202122232425262728293031323334 |
- //
- // YXSceneTableViewCell.m
- // Temperature
- //
- // Created by gtjx-z on 2025/4/8.
- //
- #import "YXSceneTableViewCell.h"
- @implementation YXSceneTableViewCell
- - (void)awakeFromNib {
- [super awakeFromNib];
- // Initialization code
- self.backgroundColor = [UIColor colorWithHexString:@"#F2F5FA"];
-
- [self.eventBtn addTarget:self action:@selector(eventBtnAction:) forControlEvents:UIControlEventTouchUpInside];
- }
- -(void)eventBtnAction:(UIButton *)btn
- {
- if (self.onPowerClick) {
- self.onPowerClick();
- }
-
- }
- - (void)setSelected:(BOOL)selected animated:(BOOL)animated {
- [super setSelected:selected animated:animated];
- // Configure the view for the selected state
- }
- @end
|