全屏图片

来源:互联网 发布:穷查理宝典 知乎 编辑:程序博客网 时间:2024/05/16 15:19
UIGraphicsBeginImageContext(view.bounds.size); CGContextRef ctx = UIGraphicsGetCurrentContext();[view.layer renderInContext:ctx];UIImage *image = UIGraphicsGetImageFromCurrentImageContext();UIGraphicsEndImageContext();

原创粉丝点击