读书人

关于获取documents途径

发布时间: 2012-06-29 15:48:47 作者: rapoo

关于获取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
?

读书人网 >移动开发

热点推荐