Skip to content

Commit

Permalink
fixed blur on iOS8
Browse files Browse the repository at this point in the history
  • Loading branch information
JanC committed May 21, 2015
1 parent 1c31158 commit d5a08d9
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions Pod/Classes/TAPromoteeViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}



Expand Down

0 comments on commit d5a08d9

Please sign in to comment.