How can I make a screenshot programmatically in iOS?
How ca开发者_如何学Pythonn I make a screenshot programmatically in iOS?
have fun
UIGraphicsBeginImageContext(self.view.bounds.size);
[self.view.layer renderInContext:UIGraphicsGetCurrentContext()];
UIImage *myScreenshot = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
精彩评论