I was using
NSURL *applicationDocumentsDirectory = [[[NSFileManager defaultManager] URLsForDirectory:NSDocumentDirectory inDomains:NSUserDomainMask] lastObject];
to get the application directory in the IOS simulator. In my previous projects, I get path like:
Users/username/Library/Application%20Support/iPhone%20Simulator/7.1-64/Applications/30CF9489-8AE3-49D4-9E01-DC14EBA2E08D/Documents/
However, in one of my projects, it returns
Users/username/Library/Application%20Support/iPhone%20Simulator/7.1-64/Applications/30CF9489-8AE3-49D4-9E01-DC14EBA2E08D/Library/Documentation
Why they return two different paths while I am using the same method?
因为在NSDocumentationDirectory
情况下,您使用的是NSDocumentationDirectory
而不是NSDocumentDirectory
。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.