iphone 如何实现全屏截图



  1. 本文摘自:http://www.devdiv.com/forum.php?mod=viewthread&tid=58560&highlight=%BD%D8%CD%BC
  2. 本文参考:http://www.devdiv.com/forum.php?mod=viewthread&tid=31687&highlight=%BD%D8%CD%BC
  3. UIGraphicsBeginImageContext(pictureView.bounds.size); 
                

  4. [pictureView.layer renderInContext:UIGraphicsGetCurrentContext()]; 

  5. UIImage *viewImage = UIGraphicsGetImageFromCurrentImageContext();

  6. UIGraphicsEndImageContext();

  7. UIImageWriteToSavedPhotosAlbum(viewImage, nil, nil, nil);
posted on 2011-12-05 11:47  wtq  阅读(1498)  评论(0编辑  收藏  举报