猎豆优选

LDPicCollectionViewCell.m 634B

1234567891011121314151617181920212223242526
  1. //
  2. // LDPicCollectionViewCell.m
  3. // YouHuiProject
  4. //
  5. // Created by 小花 on 2018/1/23.
  6. // Copyright © 2018年 kuxuan. All rights reserved.
  7. //
  8. #import "LDPicCollectionViewCell.h"
  9. @implementation LDPicCollectionViewCell
  10. - (instancetype)initWithFrame:(CGRect)frame{
  11. if (self = [super initWithFrame:frame]) {
  12. _image = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, self.bounds.size.width , self.bounds.size.height)];
  13. _image.layer.borderColor = [UIColor redColor].CGColor;
  14. _image.layer.borderWidth = 1;
  15. [self.contentView addSubview:_image];
  16. }
  17. return self;
  18. }
  19. @end