UIGraphicsBeginImageContext(cardView.frame.size);
[cardView.layer renderInContext:UIGraphicsGetCurrentContext()];
screenShot = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
NSString *imagePath = [model imagePath];
[UIImagePNGRepresentation(screenShot) writeToFile:imagePath atomically:YES];
댓글 없음:
댓글 쓰기