转自:
http://blog.sina.com.cn/s/blog_9713c0d40101b9m0.html
一:获取documents目录路径
//1,获取家目录路径的函数:
NSString
//2,获取Documents目录路径的方法:
a:NSArray
NSString
b:[NSHomeDirectory()stringByAppendingPathCom
二:获取资源路径app目录
1.NSString *dataPath = [[NSBundle mainBundle]
//Users/abc/Library/Application Support/iPhone Simulator/6.0/Applications/02D4F12B-3587-402B-A035-B9443BCCB541/abc.app/abc.plist
2.[[NSBundle mainBundle]resourcePath]
/Users/abc/Library/Application Support/iPhone Simulator/6.0/Applications/02D4F12B-3587-402B-A035-B9443BCCB541/abc.app