I have the attached code in my application that takes a screenshot of the view before emailing it. It works fine for Portrait mode but cuts off a section in Landscape mode. Running on IOS7. Can anyone help me please ?
UIGraphicsBeginImageContext(self.view.bounds.size);
[self.view.layer renderInContext:UIGraphicsGetCurrentContext()];
UIImage *screenshotimage = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
UIImageWriteToSavedPhotosAlbum(screenshotimage, nil, nil, nil);