Hi,
I can write file into simulator but can't write file into iPhone.
This is how I write file:
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
NSString *documentsDirectory = [paths objectAtIndex:0];
// the path to write file
NSString *appFile = [documentsDirectory stringByAppendingPathComponent
"myFile"];
[data writeToFile:appFile atomically:YES];
Is this because of the Apple certification problem? Or is there any other reason that cause the application unable to write file into iPhone?
Regards,
Rachel
I can write file into simulator but can't write file into iPhone.
This is how I write file:
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
NSString *documentsDirectory = [paths objectAtIndex:0];
// the path to write file
NSString *appFile = [documentsDirectory stringByAppendingPathComponent
[data writeToFile:appFile atomically:YES];
Is this because of the Apple certification problem? Or is there any other reason that cause the application unable to write file into iPhone?
Regards,
Rachel