线上所有马甲包模板,与《猎豆》同UI。域名zhuadd

HSQCollectionMainReusableView.m 739B

123456789101112131415161718192021222324252627282930
  1. //
  2. // HSQCollectionMainReusableView.m
  3. // YouHuiProject
  4. //
  5. // Created by 小花 on 2018/5/7.
  6. // Copyright © 2018年 kuxuan. All rights reserved.
  7. //
  8. #import "HSQCollectionMainReusableView.h"
  9. @implementation HSQCollectionMainReusableView
  10. - (instancetype)initWithFrame:(CGRect)frame {
  11. self = [super initWithFrame:frame];
  12. if (self) {
  13. [self initSubView];
  14. }
  15. return self;
  16. }
  17. - (void)initSubView {
  18. UIImageView *imageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 170, 14)];
  19. imageView.image = [UIImage imageNamed:@"youLikeIcon"];
  20. imageView.contentMode = UIViewContentModeScaleAspectFit;
  21. imageView.center = CGPointMake(self.width/2, self.height/2);
  22. [self addSubview:imageView];
  23. }
  24. @end