diff --git a/Classes/HUD/M13ProgressHUD.m b/Classes/HUD/M13ProgressHUD.m index b741f47..85b9b48 100644 --- a/Classes/HUD/M13ProgressHUD.m +++ b/Classes/HUD/M13ProgressHUD.m @@ -754,6 +754,9 @@ - (UIImage *)snapshotForBlurredBackgroundInView:(UIView *)view //Draw the snapshot view into a UIImage UIGraphicsBeginImageContextWithOptions(snapshotView.bounds.size, YES, [UIScreen mainScreen].scale); CGContextRef context = UIGraphicsGetCurrentContext(); + if (!context) { + return nil; + } CGContextTranslateCTM(context, viewRect.origin.x, viewRect.origin.y); BOOL result = [self.superview drawViewHierarchyInRect:viewRect afterScreenUpdates:YES]; UIImage *image = UIGraphicsGetImageFromCurrentImageContext(); diff --git a/M13ProgressSuite.podspec b/M13ProgressSuite.podspec index a62338e..6eadfd1 100644 --- a/M13ProgressSuite.podspec +++ b/M13ProgressSuite.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = "M13ProgressSuite" - s.version = "1.2.6" + s.version = "1.2.7" s.summary = "A suite containing many tools to display progress information on iOS." s.description = <<-DESC @@ -27,7 +27,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI s.platform = :ios, '7.0' - s.source = { :git => "https://github.com/Marxon13/M13ProgressSuite.git", :tag => "v1.2.6"} + s.source = { :git => "https://github.com/Marxon13/M13ProgressSuite.git", :tag => "v1.2.7"} s.source_files = 'Classes/*/*' diff --git a/M13ProgressSuite.xcworkspace/xcuserdata/Brandon.xcuserdatad/UserInterfaceState.xcuserstate b/M13ProgressSuite.xcworkspace/xcuserdata/Brandon.xcuserdatad/UserInterfaceState.xcuserstate index 3a8609b..c75d7eb 100644 Binary files a/M13ProgressSuite.xcworkspace/xcuserdata/Brandon.xcuserdatad/UserInterfaceState.xcuserstate and b/M13ProgressSuite.xcworkspace/xcuserdata/Brandon.xcuserdatad/UserInterfaceState.xcuserstate differ