关于获取documents路径
NSString*imagePath = [[[NSBundlemainBundle] resourcePath] stringByAppendingPathComponent:@"Image"];imagePath = [artistImagePath stringByAppendingPathComponent:@"bg"];imagePath = [artistImagePath stringByAppendingPathComponent:@"bg.png"];NSLog(@"%@", imagePath);UIImage* pic = [UIImage imageWithContentsOfFile: imagePath];//输出:/Users/test/Library/Application Support/iPhone Simulator/4.1/Applications/Test.app/Image/bg/bg.png?