kronik / DKLiveBlur

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Half table blur

fabiosoft opened this issue · comments

why happen this?
schermata 2013-10-10 alle 15 49 41

Here is my code:

  self.navigationController.navigationBar.translucent = YES;
    tableMainForecast = [[UITableView alloc] initWithFrame:CGRectMake(0, 0, CGRectGetWidth(self.view.bounds), CGRectGetHeight(self.view.bounds)) style:UITableViewStylePlain];
    [self.view addSubview:tableMainForecast];
    tableMainForecast.separatorStyle = UITableViewCellSeparatorStyleNone;
    tableMainForecast.dataSource = self;
    tableMainForecast.delegate = self;
    tableMainForecast.autoresizingMask = UIViewAutoresizingFlexibleHeight | UIViewAutoresizingFlexibleWidth;
    tableMainForecast.separatorColor = [UIColor clearColor];
    tableMainForecast.backgroundColor = [UIColor clearColor];

    DKLiveBlurView *backgroundView = [[DKLiveBlurView alloc] initWithFrame: self.view.bounds];
    backgroundView.originalImage = [UIImage imageNamed:@"bg1.jpg"];
    backgroundView.tableView = tableMainForecast;
    backgroundView.isGlassEffectOn = YES;

    tableMainForecast.backgroundView = backgroundView;

How can i solve?

Most likely because of your app orientation. You should correctly handle it and resize blurred view too.