Created
June 7, 2013 06:02
-
-
Save xuyunan/5727319 to your computer and use it in GitHub Desktop.
截屏
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 截全屏 | |
- (UIImage *)imageWithScreenContents | |
{ | |
UIGraphicsBeginImageContext(SCREEN_SIZE); | |
UIImage *aImage =UIGraphicsGetImageFromCurrentImageContext(); | |
UIGraphicsEndImageContext(); | |
return aImage; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment