1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- //
- // YOUPAIRightCollectionContentCell.m
- // MSYOUPAI
- //
- // Created by xiaohaoran on 2022/3/1.
- // Copyright © 2022 MS. All rights reserved.
- //
- #import "YOUPAIRightCollectionContentCell.h"
- @implementation YOUPAIRightCollectionContentCell
- -(instancetype)initWithFrame:(CGRect)frame{
- self = [super initWithFrame:frame];
- if (self) {
-
- [self youpaifsetSubView];
- }
- return self;
- }
- -(void)youpaifsetSubView{
-
- self.youpaipiconImageView = [UIImageView new];
- [self.contentView addSubview:self.youpaipiconImageView];
- [self.youpaipiconImageView mas_makeConstraints:^(MASConstraintMaker *make) {
- make.edges.mas_equalTo(0);
- }];
- // self.youpaipiconImageView.image = [UIImage imageNamed:@"vqu_images_D_dynamic_play1"];
- self.youpaipiconImageView.contentMode = UIViewContentModeScaleAspectFill;
- self.youpaipiconImageView.clipsToBounds = YES;
- self.youpaipiconImageView.layer.cornerRadius = 10;
- self.youpaipiconImageView.backgroundColor = [UIColor whiteColor];
- self.youpaipplayImageView = [UIImageView new];
- [self.youpaipiconImageView addSubview:self.youpaipplayImageView];
- [self.youpaipplayImageView mas_makeConstraints:^(MASConstraintMaker *make) {
- make.center.mas_equalTo(0);
- make.size.mas_equalTo(CGSizeMake(19, 19));
- }];
- self.youpaipplayImageView.contentMode = UIViewContentModeScaleAspectFill;
- self.youpaipplayImageView.clipsToBounds = YES;
- self.youpaipplayImageView.image = [UIImage imageNamed:@"vqu_images_D_dynamic_play1"];
- }
- -(void)setCycleShow:(BOOL)cycleShow{
- _cycleShow = cycleShow;
- if (cycleShow) {
- self.youpaipiconImageView.layer.borderWidth = 1;
- self.youpaipiconImageView.layer.borderColor = [UIColor whiteColor].CGColor;
- }else{
- self.youpaipiconImageView.layer.borderWidth = 0;
-
- }
-
- }
- @end
|