[iPhone] UIView 캡쳐

UIGraphicsBeginImageContext(self.bounds.size);
[self.layer renderInContext:UIGraphicsGetCurrentContext()];

UIImage* image1 = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();

UIImageWriteToSavedPhotosAlbum(image1, nil, nil, nil);

Trackbacks 0 / Comments 0

티스토리 툴바