找不到SDWebImage / UIImageView + WebCache.h文件 [英] SDWebImage/UIImageView+WebCache.h file not found

查看:3992
本文介绍了找不到SDWebImage / UIImageView + WebCache.h文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在我的iPhone应用中使用SDWebImage。
我按照一步一步的教程将SDWebImage安装到我的Xcode项目中。

I'm trying to use SDWebImage in my iPhone app. I followed the step by step tutorial to install SDWebImage into my Xcode project.

当我尝试构建我的应用程序时,我收到以下错误:

When I try to build my app i'm getting the following error:

Lexical or Preprocessor Issue
'SDWebImage/UIImageView+WebCache.h' file not found 

有人可以帮我解决这个问题吗?

Can somebody help me solve this issue?

推荐答案

更清洁的安装SDWebImage如下:

A much cleaner "install" of SDWebImage would be as follow:


  1. 将SDWebImage文件夹从Finder拖到Xcode的项目中

  2. 在你想要使用它的任何.m文件中添加:
    #importUIImageView + WebCache.h

(以及所需的任何其他SD组件)

(and any other SD component needed)

而不是你可能做的:
#import< SDWebImage / UIImageView + WebCache.h>

这不需要任何项目标题操作,并将按原样运行。

this does not require any project header manipulation and will work as is.

这篇关于找不到SDWebImage / UIImageView + WebCache.h文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆