YOUPAILCCityCell.m 1.0 KB

123456789101112131415161718192021222324252627282930313233343536
  1. //
  2. // YOUPAILCCityCell.m
  3. // LiveChat
  4. //
  5. // Created by 张灿 on 2018/4/15.
  6. // Copyright © 2018年 caicai. All rights reserved.
  7. //
  8. #import "YOUPAILCCityCell.h"
  9. @implementation YOUPAILCCityCell
  10. - (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
  11. if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
  12. self.selectionStyle = UITableViewCellSelectionStyleNone;
  13. self.backgroundColor = [UIColor clearColor];
  14. [self youpaifinitUI];
  15. }
  16. return self;
  17. }
  18. - (void)youpaifinitUI{
  19. self.youpaipcityLabel = [[UILabel alloc]init];
  20. self.youpaipcityLabel.font = LCFont14;
  21. self.youpaipcityLabel.textColor = LZ273145Color;
  22. self.youpaipcityLabel.textAlignment = NSTextAlignmentLeft;
  23. [self.contentView addSubview:self.youpaipcityLabel];
  24. [self.youpaipcityLabel makeConstraints:^(MASConstraintMaker *make) {
  25. make.left.equalTo(self.mas_left).offset(15);
  26. make.top.equalTo(@14);
  27. make.height.equalTo(@20);
  28. }];
  29. }
  30. @end