| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- //
- // SetUpCell.m
- // jitao
- //
- // Created by 罗云飞 on 2018/9/5.
- // Copyright © 2018年 罗云飞. All rights reserved.
- //
- #import "SetUpCell.h"
- @implementation SetUpCell
- - (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
-
- self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
- if (self) {
- _imageview = [UIImageView new];
- [self.contentView addSubview:_imageview];
-
- _imageview.sd_layout
- .leftSpaceToView(self.contentView, 15)
- .heightIs(20)
- .topSpaceToView(self.contentView, 12)
- .widthIs(19);
-
- _title = [UILabel new];
- _title.textColor = [UIColor colorWithString:@"#3C3C3C"];
- _title.font = NewFont(14);
- [_title setSingleLineAutoResizeWithMaxWidth:0];
- [self.contentView addSubview:_title];
-
- _title.sd_layout
- .heightIs(45)
- .topEqualToView(self.contentView)
- .leftSpaceToView(_imageview, 10);
- }
- return self;
- }
- - (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
- }
- @end
|