I've seen a lot of questions and answers about screenshot, I know how to do it, this is not my problem, this is my code:
- (void)takeScreenShot
{
//UIGraphicsBeginImageContextWithOptions(CGSizeMake(320, 340), YES, 0.);
UIGraphicsBeginImageContext(CGSizeMake(320, 480));
[self.view.window.layer renderInContext:UIGraphicsGetCurrentContext()];
UIImage *viewImage = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
}
How is it possible to take a round screen shot instead of just 320x480 square frame?