아이폰2013. 1. 19. 00:09

글을 올린 블로거를 생각해서 광고 한번만 클릭해주시면 감사하겠습니다

- (UIImage *)captureScreenInRect {
UIGraphicsBeginImageContextWithOptions(layView.bounds.size, layView.opaque, 0.0);
[layView.layer renderInContext:UIGraphicsGetCurrentContext()];
UIImage * img = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
return img;
}
Posted by 퍼플카우D