ResultsTitleCell.m 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. //
  2. // ResultsTitleCell.m
  3. // jitao
  4. //
  5. // Created by 罗云飞 on 2018/1/16.
  6. // Copyright © 2018年 罗云飞. All rights reserved.
  7. //
  8. #import "ResultsTitleCell.h"
  9. @implementation ResultsTitleCell
  10. - (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
  11. self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
  12. if (self) {
  13. _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];
  14. [self.contentView addSubview:_textfield];
  15. ViewBorderRadius(_textfield, 5, 1, NewClearColor);
  16. _textfield.sd_layout
  17. .leftSpaceToView(self.contentView, 15)
  18. .rightSpaceToView(self.contentView, 15)
  19. .bottomSpaceToView(self.contentView, 10)
  20. .topSpaceToView(self.contentView, 10);
  21. }
  22. return self;
  23. }
  24. - (void)awakeFromNib {
  25. [super awakeFromNib];
  26. // Initialization code
  27. }
  28. - (void)setSelected:(BOOL)selected animated:(BOOL)animated {
  29. [super setSelected:selected animated:animated];
  30. // Configure the view for the selected state
  31. }
  32. @end