//img에 현재 화면이 캡쳐 된다.

UIImage *img;

UIGraphicsBeginImageContext(self.view.frame.size);

GContextRef context = UIGraphicsGetCurrentContext();

[self.view.layer renderInContext:context];

img = UIGraphicsGetImageFromCurrentImageContext();

UIGraphicsEndImageContext();

'컴퓨터 > 아이폰' 카테고리의 다른 글

페이지 넘기는 효과  (0) 2011.12.15
Gesture 인식 샘플  (0) 2011.12.15
String -> MD5(암호) 변환 샘플  (0) 2011.12.15
아이폰에서 주소록 가져오기.  (0) 2011.12.15
SMS보내기  (0) 2011.12.15
      
Posted by k_ben