iOS - Saving Data (Image)

Hello,

I’ve been looking around to see how its possible to save data such as an image on an iOS. There seems to be many different ways which has brought confusion.

What is the best possible way to save an image, or audio on iOS? For example, lets say I have an Image Editing application that I’m building in Unity for iOS. I want to be able to save the users edited image within the app, on the iOS.

The only true way I know about saving data is PlayerPrefs, so with that, I can just convert the image into byte data, and have PlayerPrefs hold that data for me. But theres got to be a better way.

Could someone please shred some light on this topic for me please?

Thanks.

You Can see i have done it for ios and android

or use it like this .first convert your image into bytes and then

 IEnumerator save_png_player()
     {
         if (Application.platform == RuntimePlatform.Android)
         { 
             File.WriteAllBytes( Application.persistentDataPath+"/"  +name+".jpg",bytes );
         }
         else
         {
             File.WriteAllBytes( Application.dataPath+"/Resources/save_screen/"+name+".jpg",bytes );
         }
      
  
         yield return null;
 
 
     }

for audio i have this, work on both ios and droid record it and play it [link text][2]