【代码笔记】iOS-实现网络图片的异步加载和缓存
2016-06-20 09:08
826 查看
代码:
- (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view. self.title=@"EGOImageViewDemo"; //实现网络图片的异步加载和缓存 EGOImageView *imageView = [[EGOImageView alloc] initWithPlaceholderImage:[UIImage imageNamed:@"1.jpg"]]; imageView.imageURL = [NSURL URLWithString:@"http://f.dalang.gov.cn/uppic/2011-7-16/2011071610283352633.jpg"]; imageView.frame = CGRectMake(10,100,100,100); [self.view addSubview:imageView]; }
相关文章推荐
- Deep Learning(深度学习)之(六)【深度神经网络压缩】Deep Compression (ICLR2016 Best Paper)
- Python 网络编程
- pull解析+httpurlconnection
- pull+httpurl
- HttpUrlConnection和Pull解析
- HttpUrlconnection+pull
- 网络编程书籍
- Linux网络安全策略
- HTTP Url
- HTTP Client
- [RaspberryPi] 树莓派初体验 - 无线网络设置与VNC连接
- c语言版socket实现tcp功能浅析
- phpStorm使用技巧总结(网络搜索得来)
- IIS 7部署https
- http://www.toplee.com/blog/6间房一个牛人的blog
- http://scripteka.com/
- http://blog.csdn.net/aogufeixue-iphone开发者
- 网络开发所需的知识
- 创建 XMLHttpRequest对象
- Android与.Net交互模拟用户屏幕操作添加APN和网络4G/3G切换