Skip to content

Commit 661a46a

Browse files
authored
Merge pull request mrackwitz#124 from kylebshr/master
Fix window crash on iOS 8
2 parents 6a8978d + 5b54fd1 commit 661a46a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Blur/MRBlurView.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ - (UIImage *)snapshot {
151151
BOOL wasHidden = self.superview.hidden;
152152
self.superview.hidden = YES;
153153

154-
UIWindow *window = UIApplication.sharedApplication.delegate.window;
154+
UIWindow *window = self.window;
155155

156156
// Absolute origin of receiver
157157
CGPoint origin = self.bounds.origin;

0 commit comments

Comments
 (0)