-
Notifications
You must be signed in to change notification settings - Fork 160
Open
Description
I wanted to add finaly efficent bluring technique added in iOS8 - UIVisualEffectView to collectionViewCell, but there is something wrong with rendering it in every second cell.
I am not that fluent with layout so I decided to ask you to have a look.
I define blur background like this inside cell:
-(void)setupBlurView
{
if ([self.blurEffectView superview]) {
[self.blurEffectView removeFromSuperview];
}
self.blurEffectView = [[UIVisualEffectView alloc] initWithEffect:[UIBlurEffect effectWithStyle:UIBlurEffectStyleLight]];
self.blurEffectView.frame = self.bounds;
[self insertSubview:self.blurEffectView atIndex:0];
}
Any ideas what causes it?
Metadata
Metadata
Assignees
Labels
No labels