1234567891011121314151617181920212223242526272829303132333435363738 |
- //
- // TDTableViewCell.m
- // TheoryNetwork
- //
- // Created by tederen on 2019/9/23.
- // Copyright © 2019 tederen. All rights reserved.
- //
- #import "TDTableViewCell.h"
- @implementation TDTableViewCell
- - (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
- }
- - (void)setCellData:(id)data {
-
- }
- - (void)setCellData:(id)data line:(BOOL)line
- {
- UIView * linev = [UIView new];
- linev.backgroundColor = UIColorHex(0xEEEEEE);
- [self.contentView addSubview:linev];
- [linev mas_makeConstraints:^(MASConstraintMaker *make) {
- make.left.right.bottom.mas_equalTo(self.contentView);
- make.height.mas_offset(1);
- }];
- }
- @end
|