iOS截屏代码
来源:互联网 发布:ubuntu无法联网 编辑:程序博客网 时间:2024/06/04 01:21
- (UIImage *) captureScreen {
UIWindow *keyWindow = [[UIApplication sharedApplication] keyWindow];
CGRect rect = [keyWindow bounds];
UIGraphicsBeginImageContext(rect.size);
CGContextRef context = UIGraphicsGetCurrentContext();
[keyWindow.layer renderInContext:context];
UIImage *img = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
return img;
}
UIWindow *keyWindow = [[UIApplication sharedApplication] keyWindow];
CGRect rect = [keyWindow bounds];
UIGraphicsBeginImageContext(rect.size);
CGContextRef context = UIGraphicsGetCurrentContext();
[keyWindow.layer renderInContext:context];
UIImage *img = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
return img;
}
0 0
- iOS 截屏代码
- iOS 截屏代码
- iOS代码截屏
- iOS截屏代码
- iOS截屏代码
- iOS截屏代码
- iOS截屏代码
- iOS截屏代码
- iOS截屏代码
- iOS 截屏功能代码
- iOS 截屏功能代码
- ios视频截屏代码
- iOS 截屏功能代码
- 用代码截屏 ios
- ios截屏代码,ios开发截屏,ios网页截屏代码
- iOS截屏代码的问题
- iOS 代码截屏和图像剪裁
- iOS 截屏代码的实现
- 转mysql物理分页
- linux双向链表分析之list_del中的技巧
- 杭电ACM_1753
- 【absolute下元素居中问题】
- linux下openssl-1.0.0c编写openssl服务器和客户端
- iOS截屏代码
- xapges repeat显示富域内容
- UVALive7045 多少个不同的数
- spring-jdbc直接获得POJO对象
- Effective Java学习笔记
- 大美黑龙江
- 使用jdb和gdb同时调试java native code
- 简单工厂模式、工厂方法模式、抽象工厂模式
- Android内存泄露相关资料整理