Saturday 15 March 2014

ios - NSFileManager UUID app directory -


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 document directory in

will be found on your app's sandbox Is:

  NSArray * path = NSSearchPathForDirectoriesInDomains (NSDocumentDirectory, NSUserDomainMask, YES); NSString * document directory = path [0];   

You can then create your own path:

  NSString * filePath = [document directory stringing captions: @ "filename .ext"];    

No comments:

Post a Comment