Skip to content

Problem with UIVisualEffectView as background #5

@maciejburda

Description

@maciejburda

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions