口袋优选

KBTableViewCell.m 905B

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