romaonthego / REFrostedViewController

iOS 7/8 style blurred view controller that appears on top of your view controller.
MIT License
2.96k stars 494 forks source link

Blur not working on iOS 8 target #117

Closed milo-the-dev closed 9 years ago

milo-the-dev commented 9 years ago

I'm not sure if anyone has a fix for this but I've been trying to use this library I have everything setup but can't seem to achieve the blur like in the demo. I have navigation setup and working correctly but I cannot set a blur or blur tint color. I'm able to customize direction and a couple other properties but the blur does not seem to be working. The only thing I can think of is that this does not work for iOS 8. Here is my RootViewController's awakeFromNib:

- (void)awakeFromNib {
   self.contentViewController = [self.storyboard instantiateViewControllerWithIdentifier:@"homeController"];
   self.menuViewController = [self.storyboard instantiateViewControllerWithIdentifier:@"sideMenuController"];
   self.liveBlur = NO;
   self.liveBlurBackgroundStyle = REFrostedViewControllerLiveBackgroundStyleLight;
   self.blurRadius = 60;
   self.blurTintColor = [UIColor colorWithRed:45/255.0 green:55/255.0 blue:56/255.0 alpha:0.6];
} 
milo-the-dev commented 9 years ago

@romaonthego any updates or comments on this?

milo-the-dev commented 9 years ago

Interesting....figured it out but I had to set the view color of menuViewController to clear in my RootViewController. That's something I wasn't seeing in the demo and didn't see mention of. Hopefully this helps anyone who comes across it.