IOS Gen UIImage from view

UIGraphicsBeginImageContext(self.view.bounds.size);
[self.view.layer renderInContext:UIGraphicsGetCurrentContext()];
UIImage *image = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();

Comments

Popular posts from this blog

Unix / Linux - Shell Input/Output Redirections

MongoDB - Query Document

PostgreSQL - Numeric Function