使用TWTweetComposeViewController類的IOS 5.x。一切都很好,甚至與TWTweetComposeViewController cansendtweet即使當用戶在twitter中撤銷應用程序時也是如此
if ([TWTweetComposeViewController canSendTweet])
除非用戶撤銷對Twitter的應用程序訪問,那麼上面仍然是正確的,並試圖發送的tweet顯示一條錯誤消息
Cannot be sent because the connection to Twitter failed.
這時候如果用戶去設置/ TWITTER/USERNAME可以固定
的消息會想出
The user name of password is incorrect.
如果密碼被重新輸入,應用程序將在Twitter上重新驗證,並且一切都很好。
1)是否有無法捕捉程序控制下的錯誤,然後可以通知用戶重做設置?
2)即使應用程序被撤銷,canSendTweet的真實性如何?