Are you trying to save an image of your active UIView into a file or
the photo library?
If so, here:
UIGraphicsBeginImageContext(pictureView.bounds.size); [pictureView.layer renderInContext:UIGraphicsGetCurrentContext()]; UIImage *viewImage = UIGraphicsGetImageFromCurrentImageContext(); UIGraphicsEndImageContext(); UIImageWriteToSavedPhotosAlbum(viewImage, nil, nil, nil);
pictureView is the UIView that you want to save.
On Sep 30, 12:13 am, equrick <li...@nibirutech.com> wrote:
> hi,all. how can I get a snap image of the current top view on the > screen? Are there some Api? > many thanks.- Hide quoted text -- Show quoted text -