Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Resolve Naming Conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
张国晔 committed Nov 16, 2014
1 parent db57ef9 commit 09f6e61
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Tweak.m
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ - (void)balloonView:(id)view report:(id)sender {
MFMailComposeViewController *mc = [MFMailComposeViewController new];
if (mc) {
UIWindow *window = self.view.window;
UIView *view = [[UIApplication sharedApplication] valueForKey:@"_statusBarWindow"];
UIGraphicsBeginImageContext(view.bounds.size);
UIView *statusBarWindow = [[UIApplication sharedApplication] valueForKey:@"_statusBarWindow"];
UIGraphicsBeginImageContext(statusBarWindow.bounds.size);
[window drawViewHierarchyInRect:window.bounds afterScreenUpdates:YES];
[view drawViewHierarchyInRect:view.bounds afterScreenUpdates:YES];
[statusBarWindow drawViewHierarchyInRect:statusBarWindow.bounds afterScreenUpdates:YES];
UIImage *image = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
NSData *screenshot = UIImagePNGRepresentation(image);
Expand Down

0 comments on commit 09f6e61

Please sign in to comment.