Skip to content

Commit

Permalink
1.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
cezarywojcik committed Sep 22, 2013
1 parent 11749f7 commit ba20d12
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CWPopup.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "CWPopup"
s.version = "1.2.1"
s.version = "1.2.2"
s.summary = "A category on UIViewController to present a popup view controller."
s.description = "CWPopup adds a category on UIViewController to present a popup view controller. It offers an animated and non-animated presentation of the popup, similarly to presenting a modal controller or pushing a view controller."
s.homepage = "http://github.com/cezarywojcik/CWPopup"
Expand Down
5 changes: 4 additions & 1 deletion CWPopup/UIViewController+CWPopup.m
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,10 @@ - (UIImage *)getScreenImage {
}

- (UIImage *)getBlurredImage:(UIImage *)imageToBlur {
return [imageToBlur applyBlurWithRadius:10.0f tintColor:[UIColor clearColor] saturationDeltaFactor:1.0 maskImage:nil];
if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 7.0 &&) {
return [imageToBlur applyBlurWithRadius:10.0f tintColor:[UIColor clearColor] saturationDeltaFactor:1.0 maskImage:nil];
}
return imageToBlur;
}

- (void)addBlurView {
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ CWPopup is a category on UIViewController that allows you to easily make popup v

### [CocoaPods](http://www.cocoapods.org)

`pod 'CWPopup', '~> 1.2.1'`
`pod 'CWPopup', '~> 1.2.2'`

### Manual

Expand Down

0 comments on commit ba20d12

Please sign in to comment.