Saving screenshot to iPhone Camera Roll

Hey everyone…
How can I save a screenshot to the iPhone camera roll? I’m using “Application.CaptureScreenshot(Application.datapath + string)” but it fails to save to the camera roll, I always get an error saying it failed to save the file.

Do i need to use the iPhone SDK to achieve this, or is there a way to do it with unity classes? If I need to use the iPhone SDK, which is C or C++ (not sure hehe), how does that work with Unity? Example (found on web):

CGRect screenRect = [[UIScreen mainScreen] bounds];
UIGraphicsBeginImageContext(screenRect.size);

CGContextRef ctx = UIGraphicsGetCurrentContext();
[glView.layer renderInContext:ctx];

UIImage *viewImage = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();

UIImageWriteToSavedPhotosAlbum(viewImage, self, nil, nil); 

Thanks in advance!

There is a plug-in named ‘Etcetera’ from Prime31, with it you can take screenshots and do other misc. stuff like testing email, sms availability, showing native ui elements.
You can write your own plug-ins for unity using obective-c but it is a pro only feature.

plugin reference

see this :

or you can write me for plugin to do this.

Prime31 has no instructions, and their forums are filled with questions about how to take the photo. Unless you are a serious programmer, it’s not going to work. I just spent 3 hrs trying the ideas on their forums, all of which give errors.