Data files from development machine to iOS device
Posted
by
StoneBreaker
on Stack Overflow
See other posts from Stack Overflow
or by StoneBreaker
Published on 2012-06-07T22:30:32Z
Indexed on
2012/06/07
22:40 UTC
Read the original article
Hit count: 228
My app has created a bunch of data files as development has progressed through the simulator. Their location is obtained by this function:
NSString *pathInDocumentDirectory(NSString *fileName) {
NSArray *documentDirectories = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory,
NSUserDomainMask,
YES);
NSString *documentDirectory = [documentDirectories objectAtIndex: 0];
return [documentDirectory stringByAppendingPathComponent: fileName];
}
The files are now required on the device as testing of the app is moving from the simulator to actual devices. How do I transfer the data files from my current working environment to the devices?
© Stack Overflow or respective owner