我有一个UIImageView作为我的UITableViewCell子类的背景。我已经在image字段中放置了一张图像,并在突出显示的字段中放置了该图像的较浅版本。在我的UITableViewCell子类中,我添加了代码以将该ImageView设置为突出显示,但没有任何变化...
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
[super setSelected:selected animated:animated];
// Configure the view for the selected sta
当我在我的collectionView上添加一个UILongPressGestureRecognizer时(就像在中一样),集合视图会像预期的那样停止突出显示单元格。
我正在处理UICollectionViewCellSubclass中的单元格突出显示,就像在中解释的那样
- (void)drawRect:(CGRect)rect
{
[super drawRect:rect];
if (self.highlighted) {
//Here I show my highlighting layer
}
else {
//Here