objective-c - iOS NSUserDefault 的位置
迷茫
迷茫 2017-04-24 09:11:36
0
3
645

NSUserDefault存放的少量数据的plist文件在xcode6沙盒目录下的那个位置?
谢谢

迷茫
迷茫

业精于勤,荒于嬉;行成于思,毁于随。

reply all(3)
巴扎黑

Excerpted from http://zhanbus.com/a/mdev/ios/2015/0106/1445.html

Before Xcode5, we knew that if you use the simulator to run the APP, you would like to know that the plist storage path of NSUserDefault is like this: /Users/username/Library/Application Support/iPhone Simulator/Simulator Version/Applications/UDID/Library In the Preferences folder, name your program .plist

In Xcode6, the program changed the location of the plist file created using the NSUserDefault method. The specific path is: /Users/username/Library/Developer/CoreSimulator/Devices/simulator UDID/data/Library, under the Preferences folder. As shown below:

洪涛

Library/Preferences

I recommend you another good thing: http://simpholders.com/

PHPzhong
NSLog(@"%@",NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES)[0]);

Use this to print the address

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template