nicklockwood / FXBlurView

[DEPRECATED]
Other
4.94k stars 713 forks source link

Problem when set the background view of UITableView by FXBlurView #98

Open fibers opened 9 years ago

fibers commented 9 years ago

hi , I got 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.