TDTableViewCell.m 830 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. //
  2. // TDTableViewCell.m
  3. // TheoryNetwork
  4. //
  5. // Created by tederen on 2019/9/23.
  6. // Copyright © 2019 tederen. All rights reserved.
  7. //
  8. #import "TDTableViewCell.h"
  9. @implementation TDTableViewCell
  10. - (void)awakeFromNib {
  11. [super awakeFromNib];
  12. // Initialization code
  13. }
  14. - (void)setSelected:(BOOL)selected animated:(BOOL)animated {
  15. [super setSelected:selected animated:animated];
  16. // Configure the view for the selected state
  17. }
  18. - (void)setCellData:(id)data {
  19. }
  20. - (void)setCellData:(id)data line:(BOOL)line
  21. {
  22. UIView * linev = [UIView new];
  23. linev.backgroundColor = UIColorHex(0xEEEEEE);
  24. [self.contentView addSubview:linev];
  25. [linev mas_makeConstraints:^(MASConstraintMaker *make) {
  26. make.left.right.bottom.mas_equalTo(self.contentView);
  27. make.height.mas_offset(1);
  28. }];
  29. }
  30. @end