WFCUMultiCallOngoingCell.m 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. //
  2. // WFCUMultiCallOngoingCell.m
  3. // WFChatUIKit
  4. //
  5. // Created by Rain on 2022/5/8.
  6. // Copyright © 2022 Wildfirechat. All rights reserved.
  7. //
  8. #import "WFCUMultiCallOngoingCell.h"
  9. @implementation WFCUMultiCallOngoingCell
  10. - (void)awakeFromNib {
  11. [super awakeFromNib];
  12. // Initialization code
  13. }
  14. - (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
  15. self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
  16. if(self) {
  17. [self.contentView.subviews enumerateObjectsUsingBlock:^(__kindof UIView * _Nonnull obj, NSUInteger idx, BOOL * _Nonnull stop) {
  18. [obj removeFromSuperview];
  19. }];
  20. self.backgroundColor = [UIColor colorWithRed:0.5 green:0.9 blue:0.5 alpha:0.5];
  21. }
  22. return self;
  23. }
  24. - (void)setSelected:(BOOL)selected animated:(BOOL)animated {
  25. [super setSelected:selected animated:animated];
  26. // Configure the view for the selected state
  27. }
  28. -(UILabel *)callHintLabel {
  29. if(!_callHintLabel) {
  30. _callHintLabel = [[UILabel alloc] initWithFrame:CGRectMake(16, 0, [UIScreen mainScreen].bounds.size.width-16, 20)];
  31. [self.contentView addSubview:_callHintLabel];
  32. }
  33. return _callHintLabel;
  34. }
  35. @end