ItemTableviewCell.m 886 B

123456789101112131415161718192021222324252627282930313233343536
  1. //
  2. // ItemTableviewCell.m
  3. // FunSDKDemo
  4. //
  5. // Created by XM on 2018/11/7.
  6. // Copyright © 2018年 XM. All rights reserved.
  7. //
  8. #import "ItemTableviewCell.h"
  9. #import "Header.h"
  10. @implementation ItemTableviewCell
  11. - (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
  12. self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
  13. if (self) {
  14. [self configSubView];
  15. }
  16. return self;
  17. }
  18. - (void)configSubView {
  19. [self.contentView addSubview:self.Labeltext];
  20. }
  21. - (UILabel *)Labeltext {
  22. if (!_Labeltext) {
  23. _Labeltext = [[UILabel alloc] initWithFrame:CGRectMake(0,0, ScreenWidth-60, 44)];
  24. _Labeltext.textAlignment = NSTextAlignmentRight;
  25. }
  26. return _Labeltext;
  27. }
  28. - (void)setSelected:(BOOL)selected animated:(BOOL)animated {
  29. [super setSelected:selected animated:animated];
  30. }
  31. @end