I have an app which is almost finished and the last part is where I send the data collected via email to the respondent. I know if I use a file in my bundle I can’t write to it as it will be readonly. Where else can I save my file to that I can then use the path for my email attatchment?
Share
You can only write to your application’s sand-boxed documents directory. Try using this:
documentsDirgives you the complete path as a string to your applications documents directory.And then you can either use
- (BOOL)writeToFile:(NSString *)path atomically:(BOOL)flagorto write your data to the location.