ios 如何截屏
UIGraphicsBeginImageContextWithOptions(self.window.bounds.size, NO, 0);[self.window drawViewHierarchyInRect:self.window.bounds afterScreenUpdates:YES];UIImage *im = UIGraphicsGetImageFromC...
·
UIGraphicsBeginImageContextWithOptions(self.window.bounds.size, NO, 0);
[self.window drawViewHierarchyInRect:self.window.bounds afterScreenUpdates:YES];
UIImage *im = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
代码如上图 记录一下
更多推荐
已为社区贡献1条内容
所有评论(0)