2009-02-01 4 views

Répondre

3

Pour obtenir l'image, vous souhaitez utiliser:

UIGraphicsBeginImageContext(self.bounds.size); 

[theView.layer renderInContext:UIGraphicsGetCurrentContext()]; 
UIImage *viewImage = UIGraphicsGetImageFromCurrentImageContext(); 

UIGraphicsEndImageContext(); 

Ensuite, pour sauver à la bibliothèque de photos:

UIImageWriteToSavedPhotosAlbum(viewImage,nil,NULL,NULL); 
Questions connexes