0
cell.selectedbackgroundview不起作用。我发现selectedview被放置在单元格后面的图像中,导致没有可见的图像(我通过将图像变小然后看到图像后面的勾号来解决这个问题)。有没有办法来解决这个问题?我的代码似乎罚款必须有事情做与层Cell.selectedBackgroundview不显示
static NSString *identifier = @"Cell";
UICollectionViewCell *cell = [collectionView dequeueReusableCellWithReuseIdentifier:identifier forIndexPath:indexPath];
UIImageView *productImages = (UIImageView *)[cell viewWithTag:100];
productImages.image = [UIImage imageNamed:[AllProducts_Sections[indexPath.section]objectAtIndex:indexPath.row]];
collectionView.backgroundColor = [UIColor greenColor];
cell.selectedBackgroundView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"tick 1.png"]];
collectionView.allowsMultipleSelection = YES;
return cell
对不起,你不知道你想做什么。 – AMohan
@Mohan此刻我的cell.selectedbackgroundview位于单元格后面的图像中,无法看到它。我希望它在前面,所以我可以看到它 – user2845489
你想在你的图像顶部的transperent刻度标记? – AMohan