My application needs to download files and store on local file system for future use. I have just 2 questions:
Is it possible to write files on iPhone file system?
Anyone know how to do it with Unity3D? I tried use the common way to do it (using System.IO), it works both on Windows and Ma开发者_开发百科c but doesn't work on iPhone.
You can use Objective-C in Unity3D:
http://www.tinytimgames.com/2010/01/10/the-unityobjective-c-divide/
And here is a tutorial on file IO for iPhone:
http://servin.com/iphone/iPhone-File-IO.html
1 - Yes, you can use the writeToFile... atomically...
method in order to write the file to a directory for later use.
- Yes, you can. Be sure to check out iOS5 (which is coming soon), you might want to store into the cloud, rather than the device :D
2.I have not tried with Unity3D.
精彩评论