Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use as UITableViewCell background view? #88

Open
guidev opened this issue Dec 6, 2014 · 2 comments
Open

Use as UITableViewCell background view? #88

guidev opened this issue Dec 6, 2014 · 2 comments

Comments

@guidev
Copy link

guidev commented Dec 6, 2014

Hello,
I cannot make it work inside a UITableViewCell.

I tried setting a FXBlurView as the cell's backgroundView, but it doesn't work.

@nicklockwood
Copy link
Owner

The performance will be horrible if you are trying to make each cell in your table into a separate blur view. The right way to do this is to make the cells transparent and put the blur view behind the table.

@fibers
Copy link

fibers commented Feb 2, 2015

hi , I also have the problem when set a FXBlurView on the background of a tableview.

UIImageView *ivTableBackground = [[UIImageView alloc] initWithFrame:self.tableView.frame];
    ivTableBackground.image = [UIImage imageNamed:@"background"];
    self.blurView = [[FXBlurView alloc] initWithFrame:self.tableView.bounds];
    self.blurView.dynamic = NO;
    self.blurView.blurRadius = 40.0f;
    self.blurView.tintColor = [UIColor clearColor];
  //  [self.blurView updateAsynchronously:YES completion:nil];
    [ivTableBackground addSubview:self.blurView];
    self.tableView.backgroundView = ivTableBackground;

My purpose is to set the "background.png" to table's background with a blur effect.
But the background image won't show as well. The commented line "updateAsynchronously" doesn't work either. If I set the self.blurView.dynamic to YES, it works as expected that the table's background is a blur image

Any help will be appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants