2011-05-17 25 views

回答

1
#import <QuartzCore/QuartzCore.h> 
UIGraphicsBeginImageContext(yourWebView.bounds.size); 
[yourWebView.layer renderInContext:UIGraphicsGetCurrentContext()]; 
UIImage *image = UIGraphicsGetImageFromCurrentImageContext(); 
UIGraphicsEndImageContext();