1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- //
- // YOUPAILZLiveMemberButton.m
- // VQU
- //
- // Created by CY on 2021/7/23.
- // Copyright © 2021 leo. All rights reserved.
- //
- #import "YOUPAILZLiveMemberButton.h"
- @implementation YOUPAILZLiveMemberButton
- - (instancetype)init{
- if (self = [super init]) {
- [self youpaifinitUI];
- }
- return self;
- }
- - (void)youpaifinitUI{
- UIImageView *imgV = [[UIImageView alloc] init];
- imgV.layer.cornerRadius = 14.5f;
- imgV.clipsToBounds = YES;
- imgV.contentMode = UIViewContentModeScaleAspectFill;
- [self addSubview:imgV];
- self.imgV = imgV;
- [imgV mas_makeConstraints:^(MASConstraintMaker *make) {
- make.top.offset(0.0f);
- make.centerY.equalTo(self);
- make.size.mas_offset(CGSizeMake(29.0f, 29.0f));
- }];
-
-
- UIButton *youpaipcountBtn = [UIButton buttonWithType:UIButtonTypeCustom];
- youpaipcountBtn.titleLabel.font = LCFont(7.0f);
- youpaipcountBtn.userInteractionEnabled = NO;
- [self addSubview:youpaipcountBtn];
- self.youpaipcountBtn = youpaipcountBtn;
- [youpaipcountBtn mas_makeConstraints:^(MASConstraintMaker *make) {
- make.bottom.offset(0.0f);
- make.centerX.equalTo(self);
- make.size.mas_offset(CGSizeMake(28.0f, 12.0f));
- }];
- }
- @end
|