简体   繁体   中英

PFTwitterUtils error when using Parse.com API - iOS

I'm using Parse.com and its PFTwitterUtils to integrate Twitter Login in my app. When trying to fetch user's Twitter details after successful login, this line of code doesn't seem to work. (The code has been taken from Official Parse Twitter integration Guidelines )

在此处输入图片说明

Please help.

Thanks.

That's because the PF_Twitter class has been declared using @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>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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