NSLog(@"%@", NSHomeDirectory());//沙盒主目录
NSLog(@"%@", NSTemporaryDirectory());//沙盒中tmp文件夹的路径
NSLog(@"%@", [[NSBundle mainBundle] bundlePath]);//沙盒中*.app包的路径
NSLog(@"%@", [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) firstObject]);//沙盒中document文件夹的路径原文地址:http://blog.csdn.net/vaercly/article/details/39402167