- (void)viewDidLoad
{
NSString *homeDirectoryPath = NSHomeDirectory();
NSString *imagePath = [homeDirectoryPath stringByAppendingString:@"/graph.png"];
NSLog(@"Image: %@", imagePath);
if (![[NSFileManager defaultManager] fileExistsAtPath:imagePath isDirectory:NULL])
{
UIImageView * myImageView = [[UIImage alloc] initWithContentsOfFile: imagePath];
//[[NSFileManager defaultManager] createDirectoryAtPath:imagePath attributes:nil];
[self.view addSubview:myImageView];
[myImageView release];
}
[super viewDidLoad];
}
分享到:
相关推荐
第ⅱ部分包括第5-15章,这一部分的内容相对独立,可以根据需要选择性地阅读:第5章介绍在iphone中检索和存储数据,包括本地数据和远程数据;第6章介绍表的使用,包括表内容显示、表导航和表编辑等;第7章介绍基于...
Anyone with programming experience can learn how to write an iPhone app. But if you want to build a great app, there’s a lot more to it than simple coding: you also need to know how design and ...
iPhone狂:约会iPhone
iPhone内存清理:删除微信垃圾缓存文件参考.pdf
iPhone开发秘籍:第2版(The iPhone Developer's Cookbook),英文版,清晰PDF版。iphone开发必备佳作,在第一版的基础上进行了全面修订和...iPhone开发的重量级参考书,揭示官方文档未详述的细节,代码示例清晰易懂。
More iPhone 3 Development: Tackling iPhone SDK 3
iphone-pdf以图片形式显示
中文介绍:iPhone是一种全新的移动平台,苹果公司为它推出了强大的软件开发工具包iPhone SDK。本书是一部关于iPhone SDK和iPhone开发的基础教程,内容翔实、语言生动。书中结合消费类设备上常见的实例,循序渐进地...
真iPhone玩家秘笈:一份靠谱的苹果手机指南
Whether you’re a self-taught iPhone development genius or have just made your way through the pages of Beginning iPhone 3 Development, we have the perfect book for you. More iPhone 3 Development: ...
iPhone in Action: Introduction to Web and SDK Development Paperback: 350 pages Publisher: Manning Publications (December 28, 2008) Language: English ISBN-10: 193398886X ISBN-13: 978-1933988863 Format...
iPhone 源代码: 飘落的雪花,纯代码写成,实现简单的动画效果
这是iPhone之手势切换图片示例程序,具体参考: http://blog.csdn.net/htttw/article/details/7881955
iPhone内存清理:删除微信垃圾缓存文件.pdf
Iphone开发系列源码——Image图片缩放随着手指Iphone开发系列源码——Image图片缩放随着手指Iphone开发系列源码——Image图片缩放随着手指Iphone开发系列源码——Image图片缩放随着手指Iphone开发系列源码——Image...
iPhone7发布:直面Android再无One more thing.pdf
疑似iPhone 5照片:800万像素 来自苹果总部.docx
搜搜慧眼1.5 for iPhone炫酷登场:寻找明星脸.docx
一个iphone local notification 的例子,简单实用,需要的可以下下来研究下。