Hi,
I have an UIImagePickerController to which I add some subviews that contain images. I need to save the whole content as an image, but fail to do this.
For saving the content of the context i use the following code
UIGraphicsBeginImageContext(self.view.frame.size);
[self.view.layer renderInContext:UIGraphicsGetCurrentContext()];
UIImage *image = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
It works for the UIImagePickerController but if i add subviews it stops at the
[self.view.layer renderInContext:UIGraphicsGetCurrentContext()];
line, without any error in the console, just quits the app.
Thanks!