2015年4月14日
摘要: + (NSString *)pathWithComponents(NSArray *)components根据components中的元素来构建路径.- (NSArray *)pathComponents解析路径,返回构成路径的各个部分.- (NSString *)lastPathComponent... 阅读全文
posted @ 2015-04-14 17:55 墓厄 阅读(360) 评论(0) 推荐(0) 编辑
摘要: 转载自:http://arc9.riaos.com/?p=4980cyy:自我理解,不保证正确,但亲自试验确实可行:若用stringByAppendingString 则需要手动在名称前加 “/”符号,而stringByAppendingPathComponent则不需要,它会自动添加stringB... 阅读全文
posted @ 2015-04-14 17:54 墓厄 阅读(433) 评论(0) 推荐(0) 编辑
摘要: //file文件操作NSFileManager 常见的NSFileManager文件的方法:-(BOOL)contentsAtPath:path 从文件中读取数据-(BOOL)createFileAtPath:path contents:(BOOL)data attri... 阅读全文
posted @ 2015-04-14 17:53 墓厄 阅读(499) 评论(0) 推荐(0) 编辑