2012-10-18 38 views
0

您好我正在使用ios5 twitter集成,我知道一個獨特的消息不會在twitter上發佈第二次。無法發送tweet消息。錯誤發生在ios5

但試圖第二次發送相同的消息,它顯示警報消息爲「無法發送推文」。

這很好。但立即,它去

if(result == TWTweetComposeViewControllerResultDone) 
{ 

    UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Done" message:@"tweet posted successfully" delegate:nil cancelButtonTitle:@"Ok" otherButtonTitles:nil]; 
    [alert show]; 
    [alert release]; 
} 

並顯示此消息。我認爲這是一個錯誤,請告訴我如何糾正這個問題。

+0

這是您的代碼或高音揚聲器ios實施? – giorashc

+0

這是twitter ios5的實現 –

回答

2

在iOS 5中整合Twitter的,

TWTweetComposeViewControllerResult只是有2個選項

當用戶選擇完成 - TWTweetComposeViewControllerResultDone

當用戶選擇取消 - TWTweetComposeViewControllerResultCancel

這個結果不取決於蘋果在後臺更新的推文。如果推文在更新時失敗,則顯示警報。

因此,我建議不要爲成功或失敗實現任何自定義彈出窗口。 由於蘋果本身實施成功/失敗鳴叫更新的跡象。一旦成功,它會彈出一個聲音&失敗的原因彈出。