口袋优选

KBCollectionViewCell.m 765B

12345678910111213141516171819202122232425262728293031
  1. //
  2. // KBCollectionViewCell.m
  3. // YouHuiProject
  4. //
  5. // Created by xiaoxi on 2018/1/17.
  6. // Copyright © 2018年 kuxuan. All rights reserved.
  7. //
  8. #import "KBCollectionViewCell.h"
  9. @implementation KBCollectionViewCell
  10. - (instancetype)initWithFrame:(CGRect)frame {
  11. self = [super initWithFrame:frame];
  12. if (self) {
  13. self.backgroundView.backgroundColor = [UIColor whiteColor];
  14. self.contentView.backgroundColor = [UIColor whiteColor];
  15. self.backgroundColor = [UIColor whiteColor];
  16. for (UIView *view in self.subviews) {
  17. if ([view isKindOfClass:[UIScrollView class]]) {
  18. ((UIScrollView *)view).delaysContentTouches = NO;
  19. break;
  20. }
  21. }
  22. }
  23. return self;
  24. }
  25. @end