#import "ViewController.h"
@interface ViewController ()
@end
@implementation ViewController
- (void)viewDidLoad {
[super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.
NSString *path = [NSString stringWithFormat:@"%@/Library/Caches/demo.plist",NSHomeDirectory()];
NSMutableDictionary *dict = [NSMutableDictionary dictionary];
[dict setObject:@"123" forKey:@"密码"];
[dict writeToFile:path atomically:YES];
NSLog(@"%@",NSHomeDirectory());
}
- (void)didReceiveMemoryWarning {
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}
@end