I have been working on a simple app that uses the ScrollView Suite AutoScroll from the Apple sample code which displays some photos in a UIScrollView.
I have a button that saves the current UIScrollView context.
Code:
UIGraphicsBeginImageContext(imageScrollView.bounds.size);
[imageScrollView.layer renderInContext:UIGraphicsGetCurrentContext()];
UIImage *viewImage = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
UIImageWriteToSavedPhotosAlbum(viewImage, nil, nil, nil);
This works perfectly for photos which I have
BUT only if the user has
NOT zoomed in at any point. If they have I am left with a blank or cropped photo.
I wish to only save the image in its entirety. For example my images are named image1, image2 etc and i wish to save only that selected image, not a cropped image of the current zoomed in area.
I have been struggling to see where i can get a direct string name to try and save the image directly.
Is there anyone familiar with ScrollView Suite that could tell me which string to use when the image is selected.
Should i be looking at trying to solve this problem by setting the bounds of the frame to capture the entire photo. e.g. all my photos are 800x1200??
If so how would i go about this?
Anyone who can help it would be greatly appreciated as i am at a bit of a dead end with it.

