JYFSCell.m 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. //
  2. // JYFSCell.m
  3. // jitao
  4. //
  5. // Created by 罗云飞 on 2018/1/19.
  6. // Copyright © 2018年 罗云飞. All rights reserved.
  7. //
  8. #import "JYFSCell.h"
  9. @implementation JYFSCell
  10. - (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
  11. self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
  12. if (self) {
  13. _title = [UILabel new];
  14. _title.text = @"交易方式";
  15. _title.font = NewFont(fitScreenWidth(12));
  16. [_title setSingleLineAutoResizeWithMaxWidth:0];
  17. [self.contentView addSubview:_title];
  18. _title.sd_layout
  19. .leftSpaceToView(self.contentView, 15)
  20. .heightIs(fitScreenWidth(12))
  21. .topSpaceToView(self.contentView, 10);
  22. }
  23. return self;
  24. }
  25. - (void)awakeFromNib {
  26. [super awakeFromNib];
  27. // Initialization code
  28. }
  29. - (void)setSelected:(BOOL)selected animated:(BOOL)animated {
  30. [super setSelected:selected animated:animated];
  31. // Configure the view for the selected state
  32. }
  33. @end