I am using NSFileManager and I have a file path "/ var / mobile / applications / 7AC2295E- 2775-41 EA-B 017-AB 4048A 9FC / document "file will be fine copied.
But every time I want to delete the app and install the path of "7AC2295E-2775-41EA-B 017-AB 4048A 9FC" Again. So, is there a way to find the right path for my app or search for the file name, if the file exists, replace the file \ delete..etc? Thanks a lot. The proper way to access the will be found on your app's sandbox Is: You can then create your own path: document directory in
NSArray * path = NSSearchPathForDirectoriesInDomains (NSDocumentDirectory, NSUserDomainMask, YES); NSString * document directory = path [0];
NSString * filePath = [document directory stringing captions: @ "filename .ext"];
No comments:
Post a Comment