tumblr image sdwebimagedownloaderr怎么用

当前位置: >
IOS学习笔记-SDWebImage 的常用方法使用
发布时间: 10:03 类别:
API documentation is available at&
在UITableView中使用 UIImageView+WebCache category
Just #import the UIImageView+WebCache.h header, and call the setImageWithURL:placeholderImage: method from the tableView:cellForRowAtIndexPath: UITableViewDataSource method. Everything will be handled for you, from async downloads to caching management.
#import &SDWebImage/UIImageView+WebCache.h&
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
static NSString *MyIdentifier = @&MyIdentifier&;
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:MyIdentifier];
if (cell == nil)
cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault
reuseIdentifier:MyIdentifier] autorelease];
// Here we use the new provided setImageWithURL: method to load the web image
[cell.imageView setImageWithURL:[NSURL URLWithString:@&/path/to/image.jpg&]
placeholderImage:[UIImage imageNamed:@&placeholder.png&]];
cell.textLabel.text = @&My Text&;
使用 blocks
With blocks, you can be notified about the image download progress and whenever the image retrival has completed with success or not:
// Here we use the new provided setImageWithURL: method to load the web image
[cell.imageView setImageWithURL:[NSURL URLWithString:@&/path/to/image.jpg&]
placeholderImage:[UIImage imageNamed:@&placeholder.png&]
completed:^(UIImage *image, NSError *error, SDImageCacheType cacheType) {... completion code here ...}];
Note: neither your success nor failure block will be call if your image request is canceled before completion.
使用&SDWebImageManager
The SDWebImageManager is the class behind the UIImageView+WebCache category. It ties the asynchronous downloader with the image cache store. You can use this class directly to benefit from web image downloading with caching in another context than a UIView (ie: with Cocoa).
Here is a simple example of how to use SDWebImageManager:
SDWebImageManager *manager = [SDWebImageManager sharedManager];
[manager downloadWithURL:imageURL
progress:^(NSInteger receivedSize, NSInteger expectedSize)
// progression tracking code
completed:^(UIImage *image, NSError *error, SDImageCacheType cacheType, BOOL finished)
if (image)
// do something with image
使用&Asynchronous Image Downloader Independently
It's also possible to use the async image downloader independently:
[SDWebImageDownloader.sharedDownloader downloadImageWithURL:imageURL
progress:^(NSInteger receivedSize, NSInteger expectedSize)
// progression tracking code
completed:^(UIImage *image, NSData *data, NSError *error, BOOL finished)
if (image && finished)
// do something with image
使用&Asynchronous Image Caching Independently
It is also possible to use the aync based image cache store independently. SDImageCache maintains a memory cache and an optional disk cache. Disk cache write operations are performed asynchronous so it doesn't add unnecessary latency to the UI.
The SDImageCache class provides a singleton instance for convenience but you can create your own instance if you want to create separated cache namespace.
To lookup the cache, you use the&queryDiskCacheForKey:done:&method. If the method returns nil, it means the cache doesn't currently own the image. You are thus responsible for generating and caching it. The cache key is an application unique identifier for the image to cache. It is generally the absolute URL of the image.
SDImageCache *imageCache = [[SDImageCache alloc] initWithNamespace:@&myNamespace&];
[imageCache queryDiskCacheForKey:myCacheKey done:^(UIImage *image)
// image is not nil if image was found
By default SDImageCache will lookup the disk cache if an image can't be found in the memory cache. You can prevent this from happening by calling the alternative methodimageFromMemoryCacheForKey:.
To store an image into the cache, you use the storeImage:forKey: method:
[[SDImageCache sharedImageCache] storeImage:myImage forKey:myCacheKey];
By default, the image will be stored in memory cache as well as on disk cache (asynchronously). If you want only the memory cache, use the alternative method storeImage:forKey:toDisk: with a negative third argument.
使用&cache key filter
Sometime, you may not want to use the image URL as cache key because part of the URL is dynamic (i.e.: for access control purpose). SDWebImageManager provides a way to set a cache key filter that takes the NSURL as input, and output a cache key NSString.
The following example sets a filter in the application delegate that will remove any query-string from the URL before to use it as a cache key:
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
SDWebImageManager.sharedManager.cacheKeyFilter = ^(NSURL *url) {
url = [[NSURL alloc] initWithScheme:url.scheme host:url.host path:url.path];
return [url absoluteString];
// Your app init code...
return YES;
Using dynamic image size with UITableViewCell
UITableView determins the size of the image by the first image set for a cell. If your remote images don't have the same size as your placeholder image, you may experience strange anamorphic scaling issue. The following article gives a way to workaround this issue:
SDWebImage does very aggressive caching by default. It ignores all kind of caching control header returned by the HTTP server and cache the returned images with no time restriction. It implies your images URLs are static URLs pointing to images that never change. If the pointed image happen to change, some parts of the URL should change accordingly.
If you don't control the image server you're using, you may not be able to change the URL when its content is updated. This is the case for Facebook avatar URLs for instance. In such case, you may use the&SDWebImageRefreshCached&flag. This will slightly degrade the performance but will respect the HTTP caching control headers:
[imageView setImageWithURL:[NSURL URLWithString:@&/olivier.poitrey/picture&]
placeholderImage:[UIImage imageNamed:@&avatar-placeholder.png&]
options:SDWebImageRefreshCached];
添加加载进度条
See this category:&
下一篇: 上一篇:
猜你会喜欢....加入应用集
云安装到手机
<button type="button" class="btn btn-default ex-btn-glyphicon hidden-xs" data-toggle="popover" data-placement="bottom" data-trigger="hover" data-container="body" data-html="true" title="扫描二维码下载到手机" data-content="">二维码
酷安点评:Tumblr下载器Tumbloader是个方便获取Tumblr上喜欢的内容的工具,特别适合收自己喜欢的图片或视频,这样即可更方便的离线观看。 点评来自 @zesty
我的评分(未评分)
软件名称:Tumblr下载器Tumbloader
APK名称:com.tuangiao.tumblrdownloader
最新版本:1.1.7.2
支持ROM:3.0及更高版本
界面语言:英文软件
软件大小:4.46 M
更新日期:
开发者:LiFish
android.permission.INTERNET访问网络 访问网络连接,可能产生GPRS流量
android.permission.ACCESS_NETWORK_STATE获取网络状态 获取网络信息状态,如当前的网络连接是否有效
android.permission.WRITE_EXTERNAL_STORAGE写入外部存储 允许程序写入外部存储,如SD卡上写文件
android.permission.WAKE_LOCK唤醒锁定 允许程序在手机屏幕关闭后后台进程仍然运行
android.permission.VIBRATE使用振动 允许振动
android.permission.READ_EXTERNAL_STORAGE读取外部存储 读取外部存储,如sdcard
android.permission.GET_ACCOUNTS访问账户Gmail列表 访问GMail账户列表
android.permission.USE_CREDENTIALS使用证书 允许程序请求验证从AccountManager
android.permission.READ_PHONE_STATE读取电话状态 访问电话状态
com.google.android.c2dm.permission.RECEIVE
com.tuangiao.tumblrdownloader.permission.C2D_MESSAGE
com.android.vending.BILLING
加入应用集
使用Tumblr下载器Tumbloader,你便可以轻松下载Tumblr网站上的一切内容。
目前支持的有:
- 高分辨率照片
- Tumblr视频
- Tumblr音频
- Tumblr上的视频
易于使用:
1- 打开官方Tumblr应用
2- 点击媒体内容下的分享按钮
3- 选择列表里的Tumblr Downloader
4- 等待信息载入,点击下载按钮
分类标签:
- Fixed bugs
- Improve performance
Keep in touch and updating Tumbloader to download all videos were error before. Thank you!
更新版本:1.1.7.2
更新版本:1.1.7
更新版本:1.1.6.9
更新版本:1.1.6.7
更新版本:1.1.6.6
tumblr客户端不见了
推荐一个Tumblr下载脚本,亲测可用,站点出新图片了还可以增量更新:/die-Deutsche-Orthopaedie/TumblrDumper
好评,tumbloader 闪退了
tumblr下架了?
可以提供最新版tumblr更新的网址吗?
色情网,以前找到一个天天更新小电影
5.1.1闪退?
有老司机提供一下关键词吗?原来的找不到了
一直在loading files。。。。。。。。。。
对比Instagram的情况,这也许是个Tumblr要被墙的前兆
酷安把汤不热给下架了?
其实直接用qq浏览器就能下...速度超快
我就问问那个账号为什么注册不了?然而我谷歌账号都能注册
为什么还是闪退?求教
怎么用的?????
好多绅士啊
下载后使用幸运破解器破解然后启动加号里面去除ads选项。卧槽。没广告了。
菜市场那个汤不热下载器好用
5.0.1 闪退
能不能批量下图
竟然还要用官方的软件才行…还不如直接用网页版
还是内退!是不是与停用于play有关啊……
报错,错误是MainActivity空指针异常
直接网页下载 省事多了
福利来一波
下小黄片很方便
从看都是阅后就碎
感谢分享,喜欢的可以收藏了。
反正我关注的都是黄图帐号呵呵呵呵
图太多,看花眼,存图强迫症,受不鸟了。。
为什么依旧闪退~~
闪退。。。。。。
用QQ浏览器下载不比这货好使
华硕闪退怎么解
魅蓝note闪退
需要科学上网吗 0 0
福利来一个。。。。
form>div>textarea" data-dock="left" data-placement="top">
form').submit();">回复Tumblr Image Downloader download | SourceForge.net
Tumblr Image Downloader
Application for downloading images from Tumblr
Brought to you by:
Screenshots
Description
With this application you can download all images from a Tumblr page.
Please, check discussion for bugs and feedback.
Categories
Download images from all pages or specifiedFilter images by size (,250,100, 75sq) and/or tagSkip / Overwrite / Add Date.Time options if file already existsOption for check if file exists in folder with other nameMaintain the original name or rename if you wantDownload avatars or not (at advanced options panel)
KEEP ME UPDATED
By clicking on "Follow" below, you are agreeing to the
Invalid email address. Please try again.
Sent to None.
You seem to have CSS turned off.
Please don't fill out this field.
You seem to have CSS turned off.
Please don't fill out this field.
User Ratings
&#9733;&#9733;&#9733;&#9733;&#9733;
&#9733;&#9733;&#9733;&#9733;
&#9733;&#9733;&#9733;
&#9733;&#9733;
User Reviews
excellent thank you
jamesjordan
I use this all the time and it works perfectly. Now if somebody could come up with something like this for downloading pic&#39;s and albums from Facebook that would be great
Love the tool, there are just a couple of annoyances which have more to do with Tumblr and users than with the tool.
Ideally, it would either create an &#39;editable&#39; DB of files such that it would accelerate the downloading and allow for targeting specific files to not be synced.
Or, a simple script/tool would allow for setting an unwanted file to be set to zero bytes but keep the file name to allow the tool to automagically just skip that file.
very good, simple to use
computerdude100
I love it. Although, it could use a GIF option. I&#39;d love to see that. :)
*Update: Never mind. I just noticed it downloading gifs. Awesome. :D
Additional Project Details
googletag.cmd.push(function() {
googletag.display('div-gpt-ad-0-0');Twitter image Downloader &#8211; 下载任意公开用户全部照片
(快来投票)
Loading...
然后就有 Geek 看不下去,Twitter image Downloader 就来了。
只需输入任何一个公开的 Twitter ID,就开始下载了,不用担心 Twitter image Downloader 界面上的截图,图片为大尺寸原图
呃,福利图没有码是不可以的。
喜欢这篇文章?
按分类查看文章:
大家都在讨论些什么
: 我同学连google和microsoft都不认识,但是知道windows和三星;不知道ios,但知道苹果。: 直接把数据库文件扔进同步盘: 就类似这些桌面启动系统,或者日历提醒什么的。我现在最想要一个日历提醒功能,不要太复杂。而手机版的太恶心。对了,这个APP还有广告呢呀: 还是在用onenote 如果对于网站样式的黏贴更完善点的话onenote真的是无敌了: steam上的fishing planet不错: 早都有了: 我在用云集,用了很久了,看介绍,感觉和这个类似。
最热门标签
传说中的小众软件 让你的手机应用与众不同。
个人 blog 转载时请遵循 “署名-非商业性使用-相同方式共享” 的创作共用协议;
商业网站或未授权媒体不得复制本站内容。

我要回帖

更多关于 imagedownloader下载 的文章

 

随机推荐