YOUPAIBigCastSettingCell.m 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. //
  2. // YOUPAIBigCastSettingCell.m
  3. // MSYOUPAI
  4. //
  5. // Created by CY on 2022/3/9.
  6. // Copyright © 2022 MS. All rights reserved.
  7. //
  8. #import "YOUPAIBigCastSettingCell.h"
  9. @implementation YOUPAIBigCastSettingCell
  10. - (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
  11. if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
  12. self.selectionStyle = UITableViewCellSelectionStyleNone;
  13. [self youpaifinitUI];
  14. }
  15. return self;
  16. }
  17. - (void)youpaifinitUI{
  18. UIImageView *youpaipimgV = [[UIImageView alloc] init];
  19. [self.contentView addSubview:youpaipimgV];
  20. self.youpaipimgV = youpaipimgV;
  21. [youpaipimgV mas_makeConstraints:^(MASConstraintMaker *make) {
  22. make.left.offset(12.0f);
  23. make.centerY.equalTo(self.contentView);
  24. make.size.mas_offset(CGSizeMake(32.0f, 32.0f));
  25. }];
  26. UILabel *youpaiptitleL = [[UILabel alloc] init];
  27. youpaiptitleL.font = LCFont14;
  28. youpaiptitleL.textColor = LZ273145Color;
  29. [self.contentView addSubview:youpaiptitleL];
  30. self.youpaiptitleL = youpaiptitleL;
  31. [youpaiptitleL mas_makeConstraints:^(MASConstraintMaker *make) {
  32. make.left.equalTo(youpaipimgV.mas_right).offset(12.0f);
  33. make.centerY.equalTo(self.contentView);
  34. }];
  35. UIImageView *arrowImgV = [[UIImageView alloc] init];
  36. arrowImgV.image = [UIImage imageNamed:@"vqu_images_D_profile_item_arrow1"];
  37. [self.contentView addSubview:arrowImgV];
  38. [arrowImgV mas_makeConstraints:^(MASConstraintMaker *make) {
  39. make.right.offset(-12.0f);
  40. make.centerY.equalTo(self.contentView);
  41. make.size.mas_offset(CGSizeMake(10.0f, 10.0f));
  42. }];
  43. [self.contentView addLineWithColor:LZF5F4F7Color lineRect:CGRectMake(20.0f, 69.5f, KScreenWidth - 40.0f, 0.5f)];
  44. }
  45. @end