View Full Version : Loading files from the simulator.
detz
Aug 8, 2008, 10:03 AM
So I have txt files that are saved on the filesystem and I'm able to read/write these fine but the problem is the simulator changes paths every time it's run. Is there a way to force it to use the same path so I don't have to copy these files to the new location every time?
kainjow
Aug 8, 2008, 10:58 AM
Drag the files into the Resources group in your Xcode project. Then you can access them via [[NSBundle mainBundle] pathForResource:@"somefile" ofType:@"txt"]
vBulletin® v3.8.6, Copyright ©2000-2012, Jelsoft Enterprises Ltd.