zoukankan      html  css  js  c++  java
  • 本地创建一个文件:

     1 + (NSString *)messageData
     2 {
     3     NSString *name = [NSString stringWithFormat:@"messageData.plist"];
     4     
     5     NSArray * pathArray = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
     6     NSString * path = [pathArray objectAtIndex:0];
     7     NSString *fullPathToFile = [path stringByAppendingPathComponent:@"caseNo"];
     8     NSFileManager *fileManager=[NSFileManager defaultManager];
     9     if (![fileManager fileExistsAtPath:fullPathToFile]) {
    10         [fileManager createDirectoryAtPath:fullPathToFile withIntermediateDirectories:YES attributes:nil error:nil];
    11     }
    12     NSString *plistPath = [fullPathToFile stringByAppendingPathComponent:name];
    1314     return plistPath;
    15     
    16 }
    有人说:爱上一座城,是因为城里住着某个人,能够与所爱的人在一起,连光阴都是美的。即便粗茶淡饭,修篱种田,只要有你陪伴就好。那么,找一个青山绿水的地方,寻一处幽静的茅舍,或是云水禅心的庭院,那里有晴朗的阳光和静谧的悠然,还有你明媚的笑脸。掬一捧花香在平淡的日子,握着一路相随的暖意,让爱的馨香在柴米油盐中升腾;在一杯茶的温情里,体味生活的诗意;在一碗粥的清淡中,感受生活的浪漫,每天清晨你和阳光都在,便是我的幸福。——春暖花开 《择一城终老,遇一人白首》
  • 相关阅读:
    array.prototype.slice.call(arguments)
    axios 的坑
    Cannot read property 'range' of null
    IDEA导入Eclipse的JavaEE项目详细步骤链接
    使用 yarn 安装时,报错node_modules ode sass:Command failed.
    axios post请求非json传参设置
    vue-cli 3.x跨域配置
    idea错误: 找不到或无法加载主类
    Git 上传新项目
    Windows下生成SSH密钥
  • 原文地址:https://www.cnblogs.com/-Eric-Liu/p/5564255.html
Copyright © 2011-2022 走看看