2012/4/10

UIView covert to UIImage

UIGraphicsBeginImageContext(self.frame.size);
[_contentView.layer renderInContext:UIGraphicsGetCurrentContext()];
UIImage *resultingImage = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();

沒有留言: