iOS AILinkBleSDK - 蓝牙SDK
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

ELDeviceScanCell.m 1.0KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. //
  2. // ELDeviceScanCell.m
  3. // AILinkBleSDK_Example
  4. //
  5. // Created by LarryZhang on 2022/12/12.
  6. // Copyright © 2022 zhengzida. All rights reserved.
  7. //
  8. #import "ELDeviceScanCell.h"
  9. @implementation ELDeviceScanCell
  10. + (instancetype)subsribeCell:(UITableView *)tableView {
  11. NSString *identifier = NSStringFromClass([self class]);
  12. id cell = [tableView dequeueReusableCellWithIdentifier:identifier];
  13. if (cell == nil) {
  14. UINib *nib = [UINib nibWithNibName:identifier bundle:nil];
  15. [tableView registerNib:nib forCellReuseIdentifier:identifier];
  16. cell = [tableView dequeueReusableCellWithIdentifier:identifier];
  17. }
  18. return cell;
  19. }
  20. + (instancetype)subsribeCell {
  21. return [[NSBundle mainBundle] loadNibNamed:NSStringFromClass([self class]) owner:self options:nil].firstObject;
  22. }
  23. - (void)awakeFromNib {
  24. [super awakeFromNib];
  25. // Initialization code
  26. }
  27. - (void)setSelected:(BOOL)selected animated:(BOOL)animated {
  28. [super setSelected:selected animated:animated];
  29. // Configure the view for the selected state
  30. }
  31. @end