UIGraphicsBeginImageContext(self.bounds.size);
[self.layer renderInContext:UIGraphicsGetCurrentContext()];
UIImage *viewImage = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
Currently rated 5.0 by 3 people
Tags: uiview, uiimage
General
Powered by BlogEngine.NET 1.4.5.0 Theme by Mads Kristensen