/ Published in: Objective C
take a screen shot of the view passed in "UIGraphicsBeginImageContext"
Expand |
Embed | Plain Text
UIGraphicsBeginImageContext(self.window.bounds.size); [self.window.layer renderInContext:UIGraphicsGetCurrentContext()]; UIImage *image = UIGraphicsGetImageFromCurrentImageContext(); UIGraphicsEndImageContext(); [data writeToFile:@"board.png" atomically:YES];
You need to login to post a comment.
