设置UICollectionViewCell选中颜色

973 阅读1分钟

在cell初始化的时候设置选中view

 UIView *selectedBackgroundView = [[UIView alloc] init];
 selectedBackgroundView.backgroundColor = [UIColor redColor];
 self.selectedBackgroundView = selectedBackgroundView;