从我的Web服务缓存图像URL的最佳方法? [英] best way to cache image url from my webservice?
问题描述
有什么想法吗?
预先感谢。
我希望它能为您提供帮助。我在所有项目中都使用 SDWebImage 。
使用:
添加您的viewcontroller: #import UIImageView + WebCache.h
[yourImageView setImageWithURL:[NSURL URLWithString:@ ImageUrl]];
您需要将MapKit和ImageIO添加到项目中。如果您没有添加
要这样做:
-
单击项目导航器顶部的Xcode项目。
-
选择构建阶段标签。
-
打开使用库链接二进制文件框。
- 单击 +。
- 添加MapKit和ImageIO框架。
i have implement one application in ARC format. but i want to cache some image url(s) in cache folder of library . any idea?
thanks in advance.
I hope it's can help you. I use SDWebImage with my all projects.
using :
add your viewcontroller : #import "UIImageView+WebCache.h"
[yourImageView setImageWithURL:[NSURL URLWithString:@"ImageUrl"]];
you need to add MapKit and ImageIO to the project. if you didn't add
To do that:
Click on the project at the top of the project navigator in Xcode
Select the 'Build Phases' tab.
Open up the 'Link Binary with Libraries' box.
- Click the '+'.
- Add MapKit and ImageIO frameworks.
这篇关于从我的Web服务缓存图像URL的最佳方法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!