34 lines
822 B
Objective-C
34 lines
822 B
Objective-C
//
|
|
// QXNoticeAnchorCell.m
|
|
// QXLive
|
|
//
|
|
// Created by 启星 on 2025/5/14.
|
|
//
|
|
|
|
#import "QXNoticeAnchorCell.h"
|
|
|
|
@implementation QXNoticeAnchorCell
|
|
+(instancetype)cellWithTableView:(UITableView *)tableView{
|
|
static NSString *cellId = @"QXNoticeAnchorCell";
|
|
QXNoticeAnchorCell *cell = [tableView dequeueReusableCellWithIdentifier:cellId];
|
|
if (!cell) {
|
|
cell = [[NSBundle mainBundle] loadNibNamed:cellId owner:nil options:nil].lastObject;
|
|
}
|
|
return cell;
|
|
}
|
|
- (IBAction)btnSwitchAction:(UIButton *)sender {
|
|
sender.selected = !sender.selected;
|
|
}
|
|
- (void)awakeFromNib {
|
|
[super awakeFromNib];
|
|
// Initialization code
|
|
}
|
|
|
|
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
|
|
[super setSelected:selected animated:animated];
|
|
|
|
// Configure the view for the selected state
|
|
}
|
|
|
|
@end
|