123456789101112131415161718192021222324252627282930 |
- //
- // HSQCollectionMainReusableView.m
- // YouHuiProject
- //
- // Created by 小花 on 2018/5/7.
- // Copyright © 2018年 kuxuan. All rights reserved.
- //
- #import "HSQCollectionMainReusableView.h"
- @implementation HSQCollectionMainReusableView
- - (instancetype)initWithFrame:(CGRect)frame {
- self = [super initWithFrame:frame];
- if (self) {
- [self initSubView];
- }
- return self;
- }
- - (void)initSubView {
- UIImageView *imageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 170, 14)];
- imageView.image = [UIImage imageNamed:@"youLikeIcon"];
- imageView.contentMode = UIViewContentModeScaleAspectFit;
- imageView.center = CGPointMake(self.width/2, self.height/2);
- [self addSubview:imageView];
- }
- @end
|