The path to the iOS document, especially when you want to do persistent storage, should be understood clearly.
First the app's own document is in the sandbox, with 3
I focus on their path:
Document management Nsfilemanager *filemanager=[nsfilemanager Defaultmanager]; Documents ' path Nsurl *documenturl=[[filemanager urlsfordirectory:nsdocumentdirectory Indomains:nsuserdomainmask] Firstobject]; Show path NSLog (@ "%@", [Documenturl Path]);
Simulator under Path:
/users/xxx/library/developer/coresimulator/devices/eb6wew10-b7da-4b86-97cb-05casdasf28d9/data/containers/data/ Application/asdsa45-f790-4cec-a5ef-239f5daabedf/documents
(XXX) for personal computer user name
EB6C8F10-B7DA-4B86-97CB-05C6BC8F28D9: This is constant under the same simulator.
ASDSA45-F790-4CEC-A5EF-239F5DAABEDF: This has been changing, certainly for security reasons.
Real-Machine down path:
/var/mobile/applications/b04b8b17-45e7-455b-8b41-d6bwerwe37ed/documents
b04b8b17-45e7-455b-8b41-d6bwerwe37ed: This is also changing, not fixed.
Well the path knows, then you use persistent storage, you can go to these folders to see what happened to the system!
Document Path in iOS