123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- //
- // YOUPAILZUserFeatureView.m
- // MSYOUPAI
- //
- // Created by CY on 2022/2/28.
- // Copyright © 2022 MS. All rights reserved.
- //
- #import "YOUPAILZUserFeatureView.h"
- @interface YOUPAILZUserFeatureView ()
- @property (nonatomic, weak) UILabel *youpaiptextL;
- @end
- @implementation YOUPAILZUserFeatureView
- - (instancetype)init{
- if (self = [super init]) {
- [self youpaifinitUI];
- }
- return self;
- }
- - (void)youpaifinitUI{
- UIView *lineV = [[UIView alloc] init];
- lineV.backgroundColor = [LZA3AABEColor colorWithAlphaComponent:0.4f];
- [self addSubview:lineV];
- [lineV mas_makeConstraints:^(MASConstraintMaker *make) {
- make.left.offset(0.0f);
- make.centerY.equalTo(self);
- make.size.mas_offset(CGSizeMake(0.5f, 6.0f));
- }];
-
- UILabel *youpaiptextL = [[UILabel alloc] init];
- youpaiptextL.textColor = LZA3AABEColor;
- youpaiptextL.font = LCFont(10.0f);
- [self addSubview:youpaiptextL];
- self.youpaiptextL = youpaiptextL;
- [youpaiptextL mas_makeConstraints:^(MASConstraintMaker *make) {
- make.left.equalTo(lineV.mas_right).offset(4.0f);
- make.top.bottom.right.offset(0.0f);
- }];
- }
- - (void)youpaifreloadWithFeature:(NSString *)text{
- self.youpaiptextL.text = text;
- }
- @end
|