iphone 如何实现全屏截图
- 本文摘自:http://www.devdiv.com/forum.php?mod=viewthread&tid=58560&highlight=%BD%D8%CD%BC
- 本文参考:http://www.devdiv.com/forum.php?mod=viewthread&tid=31687&highlight=%BD%D8%CD%BC
- UIGraphicsBeginImageContext(pictureView.bounds.size);
- [pictureView.layer renderInContext:UIGraphicsGetCurrentContext()];
- UIImage *viewImage = UIGraphicsGetImageFromCurrentImageContext();
- UIGraphicsEndImageContext();
- UIImageWriteToSavedPhotosAlbum(viewImage, nil, nil, nil);