使用未解析的标识符 PFImageView

Use of unresolved identifier PFImageView

我似乎无法将我的 imageView 声明为 PFImageView。 一直说 Use of undeclared type 'PFImageView'

Parse 论坛上的一个建议说要这样做,但不确定如何使用 swift:

//In AppDelegate / applicationDidLaunch add:

[PFImageView class];

更新:

通过解析框架搜索后,我实际上并没有在其中使用 PFImageView。

对于那些仍然有此问题的人,我实际上不得不重新下载 SDK 并导入一个额外的框架 ParseUI

然后导入bridger:

#import <ParseUI/ParseUI.h>

或者,只需将此添加到您的 class:

import ParseUI

时间过得真快,如果现在是最新的 Parse 版本,如果您使用的是 cocoaPods,请将 pod 'Parse/UI' 添加到您的 Podfile 并更新。

然后你可以再次使用PFImageView。