출처 : http://www.gosw.kr/
뷰를 이미지 객체로 생성하는 법입니다.
[sourcecode language="ObjC"]
- (void) snapUIView {
UIGraphicsBeginImageContext(self.view.bounds.size);
[self.view.layer renderInContext:UIGraphicsGetCurrentContext()];
UIImage *myImage = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
UIImageWriteToSavedPhotosAlbum(myImage, nil, nil, nil);
}
[/sourcecode]