Posted By

sag333ar on 05/06/11


Tagged

xcode Objective-c iphone NSPredicate NSArray ios iOS4 iPhone3 iPhone2


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

sag333ar
bug5


Take Snapshot of Screen


 / Published in: iPhone
 

  1. UIGraphicsBeginImageContext(webview.frame.size);
  2. [self.view.layer renderInContext:UIGraphicsGetCurrentContext()];
  3. UIImage *viewImage = UIGraphicsGetImageFromCurrentImageContext();
  4. UIGraphicsEndImageContext();
  5. UIImageWriteToSavedPhotosAlbum(viewImage, nil, nil, nil);

Report this snippet  

You need to login to post a comment.