- (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath {
UICollectionViewCell *cell = [collectionView dequeueReusableCellWithReuseIdentifier:@"cell" forIndexPath:indexPath];
for (UIView *subView in cell.subviews) {
if ([subView isMemberOfClass:[UILabel class]]) { //UILabel 改为自己加的控件
[subView removeFromSuperview];
}
}
...
return cell;