| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- //
- // UrgentCell.m
- // jitao
- //
- // Created by 罗云飞 on 2018/1/22.
- // Copyright © 2018年 罗云飞. All rights reserved.
- //
- #import "UrgentCell.h"
- @implementation UrgentCell
- - (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
-
- self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
- if (self) {
- _title = [UILabel new];
- _title.font = NewFont(fitScreenWidth(12));
- _title.textColor = [UIColor colorWithString:@"#FF8523"];
- [_title setSingleLineAutoResizeWithMaxWidth:0];
- [self.contentView addSubview:_title];
-
- _title.sd_layout
- .leftSpaceToView(self.contentView, 15)
- .bottomSpaceToView(self.contentView, 15)
- .topSpaceToView(self.contentView, 10);
-
- _textfield = [NewControlPackage textFieldInitWithFrame:CGRectMake(0, 0, 0, 0) backgroundImage:nil backgroundColor:NewLineGrayColor textColor:NewGrayColor placeholder:@"" hidden:NO tag:100 font:NewFont(fitScreenWidth(11)) textAlignment:NSTextAlignmentCenter clearButtonMode:UITextFieldViewModeNever clearsOnBeginEditing:NO adjustsFontSizeToFitWidth:NO secureTextEntry:NO keyboardType:UIKeyboardTypeNumbersAndPunctuation returnKeyType:UIReturnKeyDefault userInteractionEnabled:YES];
- [self.contentView addSubview:_textfield];
-
- _textfield.sd_layout
- .leftSpaceToView(self.contentView, 60)
- .centerYEqualToView(_title)
- .topSpaceToView(self.contentView, 10)
- .bottomSpaceToView(self.contentView, 10)
- .widthIs(fitScreenWidth(68));
-
- _Company = [UILabel new];
- _Company.textColor = [UIColor colorWithString:@"#A1A1A1"];
- _Company.font = NewFont(fitScreenWidth(12));
- [_Company setSingleLineAutoResizeWithMaxWidth:0];
- [self.contentView addSubview:_Company];
-
- _Company.sd_layout
- .leftSpaceToView(_textfield, 10)
- .centerYEqualToView(_textfield)
- .topSpaceToView(self.contentView, 10)
- .bottomSpaceToView(self.contentView, 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
|