123456789101112131415161718192021222324252627282930313233343536373839 |
- //
- // ELDeviceScanCell.m
- // AILinkBleSDK_Example
- //
- // Created by LarryZhang on 2022/12/12.
- // Copyright © 2022 zhengzida. All rights reserved.
- //
-
- #import "ELDeviceScanCell.h"
-
- @implementation ELDeviceScanCell
-
- + (instancetype)subsribeCell:(UITableView *)tableView {
- NSString *identifier = NSStringFromClass([self class]);
- id cell = [tableView dequeueReusableCellWithIdentifier:identifier];
- if (cell == nil) {
- UINib *nib = [UINib nibWithNibName:identifier bundle:nil];
- [tableView registerNib:nib forCellReuseIdentifier:identifier];
- cell = [tableView dequeueReusableCellWithIdentifier:identifier];
- }
- return cell;
- }
-
- + (instancetype)subsribeCell {
- return [[NSBundle mainBundle] loadNibNamed:NSStringFromClass([self class]) owner:self options:nil].firstObject;
- }
-
- - (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
|