//应用程序的根目录,即沙盒路径,该路径下有,Documents、Library、temp以及一个.app包,应用程序只能访问该目录下的子目录
NSLog(@"NSHomeDirectory=%@",NSHomeDirectory());
//沙盒路径下的documents路径
NSLog(@"NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES)=%@",NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES));
//沙盒路径下的documents路径的子路径
NSLog(@"NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES)lastobjec=%@",[NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) lastObject]);