我在我的 IF 子句中,在 cellForRowAtIndexPath 方法中做到了这一点:
let blurEffect = UIBlurEffect(style: .Light)
let visualEffect = UIVisualEffectView(effect: blurEffect)
visualEffect.frame = cell.attachedImage.bounds
cell.attachedImage.addSubview(visualEffect)
在我的 ELSE 子句中,我想从 cell.attachedImage 中删除效果。
我该怎么做?