我想,如果我的權利,我使用類的_accessToken
使用GSTwitPicEngine類https://github.com/Gurpartap/GSTwitPicEngine用於在Twitter上
共享圖像,但它給錯誤twitpic API GSTwitPicEngine錯誤而setAccessToken
我們必須設置[twitpicEngine setAccessToken:token];
SA_OAuthTwitterEngine
如令牌
_accessToken
是SA_OAuthTwitterEngine
類私人,我將其設置爲公開,也
@property (nonatomic, readonly) OAToken *accessToken;
@synthesize accessToken = _accessToken;
,然後在行動
twitPicEngine = [GSTwitPicEngine twitpicEngineWithDelegate:self];
[twitPicEngine setAccessToken:twitterObj.accessToken];
[twitPicEngine uploadPicture:[shareDict objectForKey:@"image"] withMessage:[shareDict objectForKey:@"image_msg"]];
但應用越來越崩潰,setAccessToken與日誌
-[OAToken parameters]: unrecognized selector sent to instance 0x6327e30
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[OAToken parameters]: unrecognized selector sent to instance 0x6327e30'
請幫助,如果你能找到任何一點毛病
阿米特Battan
感謝Monitus ..我會檢查你的代碼 – 2011-05-02 04:21:59
它沒有幫助呢? @AmitBattan – Monitus 2011-05-17 07:21:08
請求連續失敗... TestTwitpic [2180:207] TwitPic無法上傳:{ errorDescription =「請求失敗。」; request =「」; 任何幫助 –
Tobias
2011-05-30 15:25:41