Quote:
Originally Posted by DenVog
I am curious how they are saving the image. Are they able to save the file directly from the application? I am guessing so, since there is a "save" button on top of the image in the application but it doesn't show up in the graphic that ends up in the Camera Roll. I have not seen how to save directly, but if they were saving the View, that "save" button would show up as well and the image quality would be second generation. Right?
|
I'm doing this in my app - maybe not the best way to do it, but you get the idea:
Code:
[appDelegate.rootViewController.view bringSubviewToFront:appDelegate.rootViewController.imageViewController.view];
CGSize size = CGSizeMake(320.0,480.0);
UIGraphicsBeginImageContext(size);
[appDelegate.rootViewController.imageViewController.view.superview.layer renderInContext:UIGraphicsGetCurrentContext()];
imageSave = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
Then you want to check out - UIImageWriteToSavedPhotosAlbum
PS - if anyone can tell me how I would get to that layer in less steps I would appreciate it