草庐IT

SDWebImage5

全部标签

ios - SdWebImage 问题中的事件指示器

我有一个水平的CollectionView,它有20个带有UIImageView的单元格我只想显示事件指示器,直到图像下载完成。我正在使用新的SDWebImage库,其中我们有sd_setImageWithURL方法到现在我正在做的是__blockUIActivityIndicatorView*activityIndicator=[[UIActivityIndicatorViewalloc]initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleGray];activityIndicator.center=cell.phot

ios - 为什么 SDWebImage 在加载后不在单元格中显示图像?

我正在使用SDWebImage。在我的表格中,每一行都有图像和标签。如您所见,无法看到图像。但是当我返回到父ViewController并再次来到这里时,它们会显示出来。我使用的代码是:[cell.imageViewsetImageWithURL:[NSURLURLWithString:serie.image]placeholderImage:[UIImageimageNamed:@"placeholder.png"]options:SDWebImageRefreshCached];那么,我哪里错了? 最佳答案 答案:获取/制作一个

ios - 如何使用 SDWebImage 加载 webp 图片?

我正在使用SDWebImage在我的iOS应用程序中加载图像,我现在想使用webp格式。这是我的第一次尝试:NSURL*url=[NSURLURLWithString:@"http://www.gstatic.com/webp/gallery/2.webp"];[self.imageViewsetImageWithURL:urlplaceholderImage:niloptions:SDWebImageProgressiveDownloadcompleted:^(UIImage*image,NSError*error,SDImageCacheTypecacheType){if(erro

使用 Thumbor 第三方调整图像大小时,ios SdWebImage 图像不会显示

我正在使用SdWebImage用于在ImageView中显示图像如果我直接使用图像URL,如http://52.74.11.56/photos/2015/07/1438154558488.jpg,SDWebImage运行完美。但我需要使用Thumbor作为缩略图服务。但是通过使用像下面这样的thumborURLstr_thumb_URL0=@"http://thumb.dot-share.com/unsafe/1024x556/smart/http://52.74.11.56/photos/2015/07/1438154558488.jpg";[cell.imageViewsd_set

ios - SDWebImage 不更新缓存中的图像

我正在使用SDWebImage用于处理图像缓存的库。我实现了其中一种从服务器下载图像并在tableView中填充数据的方法。这是我下载图片并在tableViewCell中显示的代码在cellForRowAtIndexPath中,我做了以下代码[cell.profileImageViewsd_setImageWithURL:[NSURLURLWithString:url]placeholderImage:niloptions:SDWebImageRefreshCached];它在这里工作得很好。但是当我在服务器上更新图像时,tableViewCell仍然显示相同的图像。问题是,它的缓存没

ios - 无法使用 SDWebImage

Xcode:版本7.2OSX:10.10.5我是iOS的新手,正在尝试使用SDWebImage按照官方安装指南在Objective-C中安装,但出现此错误:Undefinedsymbolsforarchitecturex86_64:"_OBJC_CLASS_$_SDWebImageManager",referencedfrom:objc-class-refinViewController.old:symbol(s)notfoundforarchitecturex86_64clang:error:linkercommandfailedwithexitcode1(use-vtoseeinv

iphone - 如何知道图像是来自缓存还是来自 SDWebImage 中的 url?

我正在使用SDWebImage来加载图像列表,这确实很好,但是如果url相同,下次加载图像时它会从缓存中加载图像。但我需要知道它即将到来的形式缓存或网络。任何帮助将不胜感激。 最佳答案 查看SDWebImageManager,它有两个版本的函数来检查一个URL是否已经被缓存:-(BOOL)diskImageExistsForURL:(NSURL*)url;还有一个版本带有一个在检查后执行的block。希望这对您有所帮助! 关于iphone-如何知道图像是来自缓存还是来自SDWebImag

ios - 尽管安装了 CocoaPod,导入 SDWebImage 还是失败

我已将SDWebImage插入到Podfilesource'https://github.com/CocoaPods/Specs.git'platform:ios,'8.0'pod'NSData+Base64','~>1.0'pod'Facebook-iOS-SDK','~>3.23'pod'CrashlyticsFramework','~>2.2'pod'AFNetworking','~>2.5'pod'NewRelicAgent','~>4.186'pod'GoogleAnalytics-iOS-SDK','~>3.10'pod'Reachability','~>3.2'pod'S

ios - 忽略文件 SDWebImage.framework,缺少所需的体系结构 x86_64

我已经安装了SDWebImage在我的Xcode5/iOS7项目中,但是构建给了我以下问题,这将导致致命异常:ignoringfileSDWebImage.framework/SDWebImage,missingrequiredarchitecturex86_64infileSDWebImage.framework/SDWebImageSDWebImage似乎是thisissuewithGoogleAnalytics的原因,并且最好的解决方案似乎是通过在build设置中使用标准架构(armv7、armv7s)来削减arm64。我真的不想那样做,SDWebImage有thisissueb

ios - 如何在 SDwebimage 中使用成功和失败 block

我有最新版本的SDWebimage但它没有成功和失败我尝试了以下方法,但SDwebimage没有方法[self.imageViewsetImageWithURL:[NSURLURLWithString:self.imageURL]placeholderImage:[UIImageimageNamed:@"YourPlaceholder.png"]success:^(UIImage*image){//removeanimation}failure:^(NSError*error){NSLog(@"thumbnailerror:%@",error);//handlefaileddownlo