| 123456789101112131415161718192021222324252627282930313233343536373839404142 |
- //
- // ResultsTitleCell.m
- // jitao
- //
- // Created by 罗云飞 on 2018/1/16.
- // Copyright © 2018年 罗云飞. All rights reserved.
- //
- #import "ResultsTitleCell.h"
- @implementation ResultsTitleCell
- - (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
-
- self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
- if (self) {
- _textfield = [NewControlPackage textFieldInitWithFrame:CGRectMake(0, 0, 0, 0) backgroundImage:nil backgroundColor:NewWhiteColor textColor:NewGrayColor placeholder:@" 请为您的技术成果配个标题吧~" hidden:NO tag:100 font:NewFont(fitScreenWidth(12)) textAlignment:NSTextAlignmentLeft clearButtonMode:UITextFieldViewModeAlways clearsOnBeginEditing:NO adjustsFontSizeToFitWidth:NO secureTextEntry:NO keyboardType:UIKeyboardTypeDefault returnKeyType:UIReturnKeyDefault userInteractionEnabled:YES];
- [self.contentView addSubview:_textfield];
- ViewBorderRadius(_textfield, 5, 1, NewClearColor);
-
- _textfield.sd_layout
- .leftSpaceToView(self.contentView, 15)
- .rightSpaceToView(self.contentView, 15)
- .bottomSpaceToView(self.contentView, 10)
- .topSpaceToView(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
|