简体   繁体   English

使用Parse.com API时出现PFTwitterUtils错误-iOS

[英]PFTwitterUtils error when using Parse.com API - iOS

I'm using Parse.com and its PFTwitterUtils to integrate Twitter Login in my app. 我正在使用Parse.com及其PFTwitterUtils将Twitter Login集成到我的应用程序中。 When trying to fetch user's Twitter details after successful login, this line of code doesn't seem to work. 成功登录后尝试获取用户的Twitter详细信息时,此代码行似乎不起作用。 (The code has been taken from Official Parse Twitter integration Guidelines ) (该代码摘自Official Parse Twitter集成准则

在此处输入图片说明

Please help. 请帮忙。

Thanks. 谢谢。

That's because the PF_Twitter class has been declared using @class PF_Twitter; 这是因为已使用@class PF_Twitter;声明了PF_Twitter@class PF_Twitter; but no interface has been found. 但没有找到接口。 You need to include the header. 您需要包括标题。

Add this at the top of your file : 在文件顶部添加:

#import <ParseTwitterUtils/PF_Twitter.h>

Alternatively, you can also add the following line : 另外,您还可以添加以下行:

#import <ParseTwitterUtils/ParseTwitterUtils.h>

and remove this one : 并删除此一个:

#import <ParseTwitterUtils/PFTwitterUtils.h>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM