摘要: http://blog.csdn.net/pjk1129/article/details/6936545 阅读全文
posted @ 2013-02-27 20:32 ifeixiang 阅读(213) 评论(0) 推荐(0) 编辑
摘要: http://www.appfanr.com/2012/01/ios-regex/ 阅读全文
posted @ 2013-02-27 20:25 ifeixiang 阅读(137) 评论(0) 推荐(0) 编辑
摘要: 在objective-c中,有两种方法可以得到目录中的内容,包括文件和子目录:1,directoryContentsAtPath ;2,enumeratorAtPath区别是,第2种会递归访问所有子目录的文件,得到所有文件的列表示例代码: 1 -(NSMutableArray*)getAllFiles:(NSString *)root 2 { 3 NSFileManager* fm ; 4 NSDirectoryEnumerator *dirEnumerator ; 5 NSMutableArray *dirArray = [[NSMutableArray alloc]... 阅读全文
posted @ 2013-02-27 17:14 ifeixiang 阅读(626) 评论(0) 推荐(0) 编辑