// // LDCollectionViewCell.m // YouHuiProject // // Created by xiaoxi on 2018/1/17. // Copyright © 2018年 kuxuan. All rights reserved. // #import "LDCollectionViewCell.h" @implementation LDCollectionViewCell - (instancetype)initWithFrame:(CGRect)frame { self = [super initWithFrame:frame]; if (self) { self.backgroundView.backgroundColor = [UIColor whiteColor]; self.contentView.backgroundColor = [UIColor whiteColor]; self.backgroundColor = [UIColor whiteColor]; for (UIView *view in self.subviews) { if ([view isKindOfClass:[UIScrollView class]]) { ((UIScrollView *)view).delaysContentTouches = NO; break; } } } return self; } @end