Skip to content

Commit 57cd39f

Browse files
committed
Addressed Issue #35
1 parent 040ce48 commit 57cd39f

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

Classes/HUD/M13ProgressHUD.m

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -754,6 +754,9 @@ - (UIImage *)snapshotForBlurredBackgroundInView:(UIView *)view
754754
//Draw the snapshot view into a UIImage
755755
UIGraphicsBeginImageContextWithOptions(snapshotView.bounds.size, YES, [UIScreen mainScreen].scale);
756756
CGContextRef context = UIGraphicsGetCurrentContext();
757+
if (!context) {
758+
return nil;
759+
}
757760
CGContextTranslateCTM(context, viewRect.origin.x, viewRect.origin.y);
758761
BOOL result = [self.superview drawViewHierarchyInRect:viewRect afterScreenUpdates:YES];
759762
UIImage *image = UIGraphicsGetImageFromCurrentImageContext();

M13ProgressSuite.podspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = "M13ProgressSuite"
3-
s.version = "1.2.6"
3+
s.version = "1.2.7"
44
s.summary = "A suite containing many tools to display progress information on iOS."
55

66
s.description = <<-DESC
@@ -27,7 +27,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
2727

2828
s.platform = :ios, '7.0'
2929

30-
s.source = { :git => "https://github.com/Marxon13/M13ProgressSuite.git", :tag => "v1.2.6"}
30+
s.source = { :git => "https://github.com/Marxon13/M13ProgressSuite.git", :tag => "v1.2.7"}
3131

3232
s.source_files = 'Classes/*/*'
3333

-24 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)