YOUPAILCWriteMesCell.m 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. //
  2. // YOUPAILCWriteMesCell.m
  3. // VQU
  4. //
  5. // Created by 肖浩然的mac on 2021/8/3.
  6. // Copyright © 2021 leo. All rights reserved.
  7. //
  8. #import "YOUPAILCWriteMesCell.h"
  9. @implementation YOUPAILCWriteMesCell
  10. -(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
  11. if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
  12. [self youpaifsetSubView];
  13. }
  14. return self;
  15. }
  16. -(void)youpaifsetSubView{
  17. self.youpaiptitleLabel = [UILabel new];
  18. [self.contentView addSubview:self.youpaiptitleLabel];
  19. [self.youpaiptitleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
  20. make.left.mas_equalTo(27);
  21. make.centerY.mas_equalTo(0);
  22. make.width.mas_equalTo(40);
  23. }];
  24. self.youpaiptitleLabel.textColor = LZ273145Color;
  25. self.youpaiptitleLabel.font = [UIFont systemFontOfSize:16];
  26. self.youpaiphintLabel = [UILabel new];
  27. [self.contentView addSubview:self.youpaiphintLabel];
  28. [self.youpaiphintLabel mas_makeConstraints:^(MASConstraintMaker *make) {
  29. make.left.mas_equalTo(self.youpaiptitleLabel.mas_right).offset(12);
  30. make.centerY.mas_equalTo(0);
  31. make.width.mas_equalTo(180);
  32. }];
  33. self.youpaiphintLabel.font = [UIFont systemFontOfSize:16];
  34. //arrow
  35. self.youpaiparrowImageView = [UIImageView new];
  36. [self.contentView addSubview:self.youpaiparrowImageView];
  37. [self.youpaiparrowImageView mas_makeConstraints:^(MASConstraintMaker *make) {
  38. make.right.mas_equalTo(-32);
  39. make.centerY.mas_equalTo(0);
  40. make.size.mas_equalTo(CGSizeMake(16, 16));
  41. }];
  42. self.youpaiparrowImageView.image = [UIImage imageNamed:@"vqu_images_H_cell_arrow_gray"];
  43. UIView *viewLine =[UIView new];
  44. [self.contentView addSubview:viewLine];
  45. [viewLine mas_makeConstraints:^(MASConstraintMaker *make) {
  46. make.left.mas_equalTo(27);
  47. make.right.mas_equalTo(-27);
  48. make.bottom.mas_equalTo(0);
  49. make.height.mas_equalTo(0.5);
  50. }];
  51. viewLine.backgroundColor = LZF5F4F7Color;
  52. }
  53. @end