YOUPAIZYUserZiLiaoDTPhotoCell.m 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. //
  2. // YOUPAIZYUserZiLiaoDTPhotoCell.m
  3. // VQU
  4. //
  5. // Created by 肖浩然的mac on 2021/7/10.
  6. // Copyright © 2021 leo. All rights reserved.
  7. //
  8. #import "YOUPAIZYUserZiLiaoDTPhotoCell.h"
  9. @implementation YOUPAIZYUserZiLiaoDTPhotoCell
  10. -(instancetype)initWithFrame:(CGRect)frame{
  11. self = [super initWithFrame:frame];
  12. if (self) {
  13. [self youpaifsetSubView];
  14. }
  15. return self;
  16. }
  17. -(void)youpaifsetSubView{
  18. self.youpaipiconImageView = [UIImageView new];
  19. [self.contentView addSubview:self.youpaipiconImageView];
  20. [self.youpaipiconImageView mas_makeConstraints:^(MASConstraintMaker *make) {
  21. make.edges.mas_equalTo(0);
  22. }];
  23. self.youpaipiconImageView.contentMode = UIViewContentModeScaleAspectFill;
  24. self.youpaipiconImageView.clipsToBounds = YES;
  25. self.youpaipiconImageView.layer.cornerRadius = 8;
  26. self.youpaipiconImageView.layer.masksToBounds = YES;
  27. self.youpaipplayImageView = [UIImageView new];
  28. [self.youpaipiconImageView addSubview:self.youpaipplayImageView];
  29. [self.youpaipplayImageView mas_makeConstraints:^(MASConstraintMaker *make) {
  30. make.center.mas_equalTo(0);
  31. make.size.mas_equalTo(CGSizeMake(19, 19));
  32. }];
  33. self.youpaipplayImageView.contentMode = UIViewContentModeScaleAspectFill;
  34. self.youpaipplayImageView.clipsToBounds = YES;
  35. self.youpaipplayImageView.image = [UIImage imageNamed:@"vqu_images_D_dynamic_play1_DT"];
  36. }
  37. @end