There's sample code in the documentation that will show you how to use MFMailComposeViewController.
A quick search on the forum will give you samples for UIImageWriteToSavedPhotosAlbum too. In simplest terms you can just pass it a UIImage object UIImageWriteToSavedPhotosAlbum(myImage, nil, nil, nil);
As for where to call it, I can't say, depends on your app, but you call it at the point where you want to save the image.
|