2010-09-23 11 views

cevap

12
(bellekten yazılan bu yüzden% 100 doğru olmayabilir) Bunun gibi

:

Ayrıca
// Get a UIImage from the view's contents 
UIGraphicsBeginImageContextWithOptions(view.bounds.size, view.opaque, view.contentScaleFactor); 
CGContextRef context = UIGraphicsGetCurrentContext(); 
[view.layer renderInContext:context]; 
UIImage *image = UIGraphicsGetImageFromCurrentImageContext(); 
UIGraphicsEndImageContext(); 

// Convert UIImage to CGImage 
CGImageRef cgImage = image.CGImage; 
1

kodunuzda

+0

için

#import <QuartzCore/QuartzCore.h>

ekleyin emin olun: P lol gerçekten mi? haa –