I have an application that creates a .pdf file from a drawing. If I read the file in the same session as I took the picture, the file will appear correctly.
However, if I restart the application, the file does not open. Obviously, nothing changes in the application code when the application restarts, so the links to the location remain unchanged.
The file is saved in this place:
/var/mobile/Containers/Data/Application/E119DC03-347B-4C84-B07B-C607D40D26B9/Documents/Test_1_Mod.pdf
The odd part is that if I go to the Xcode “device” section, I can see the files in the “Documents” folder before and after restarting the application:

Edit: Here, as I get the location to save the file:
NSArray *arrayPaths = NSSearchPathForDirectoriesInDomains( NSDocumentDirectory, NSUserDomainMask, YES); NSString *path = [arrayPaths objectAtIndex:0]; modified_pdfFileName = [path stringByAppendingPathComponent:modified_filename_pdf];
So, am I saving the file in the wrong place?
Does the file move during reboot?
Any suggestion on this issue?
thanks
ios
TooManyEduardos
source share