From d5a08d9156c9dc5cdd65aa607f61989ab161a050 Mon Sep 17 00:00:00 2001 From: Jan Chaloupecky Date: Thu, 21 May 2015 10:39:28 +0200 Subject: [PATCH] fixed blur on iOS8 --- Pod/Classes/TAPromoteeViewController.m | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Pod/Classes/TAPromoteeViewController.m b/Pod/Classes/TAPromoteeViewController.m index 1673dca..aa33afa 100644 --- a/Pod/Classes/TAPromoteeViewController.m +++ b/Pod/Classes/TAPromoteeViewController.m @@ -84,14 +84,14 @@ - (void)viewDidLoad self.captionLabel.numberOfLines = 0; self.captionLabel.textAlignment = NSTextAlignmentCenter; -// if ([UIVisualEffectView class]) { -// UIBlurEffect *blur = [UIBlurEffect effectWithStyle:UIBlurEffectStyleExtraLight]; -// self.visualEffectView = [[UIVisualEffectView alloc] initWithEffect:blur]; -// } else { - FXBlurView * visualEffectView = [[FXBlurView alloc] init]; -// visualEffectView.blurRadius = 1.8; - self.visualEffectView = visualEffectView; -// } + if ([UIVisualEffectView class]) { + UIBlurEffect *blur = [UIBlurEffect effectWithStyle:UIBlurEffectStyleExtraLight]; + self.visualEffectView = [[UIVisualEffectView alloc] initWithEffect:blur]; + } else { + FXBlurView *visualEffectView = [[FXBlurView alloc] init]; + + self.visualEffectView = visualEffectView; + }