ios:Tweeting与SLComposeViewController保存鸣叫如果Twitter应用程序安装

问题描述:

我有一个应用程序使用SLComposeViewController发布推文。如果Twitter应用程序未安装在我的设备上(iOS 9.3.2),它工作正常。 但是,如果安装了它,我的应用程序会说,发布了tweet。当我打开Twitter的应用程序是说:ios:Tweeting与SLComposeViewController保存鸣叫如果Twitter应用程序安装

分享Tweet发送失败
您的tweet无法发送,并具有
被保存为草稿”。

如果我删除Twitter应用程序,一切正常。它在早期运行良好。
API有所变化吗?我如何才能发送没有草稿的推文?

用于鸣叫代码:

if ([SLComposeViewController isAvailableForServiceType:SLServiceTypeTwitter]) { 
    SLComposeViewController* tweetVC = [SLComposeViewController composeViewControllerForServiceType:SLServiceTypeTwitter]; 
    [tweetVC setInitialText:t]; 
    tweetVC.completionHandler = ^(SLComposeViewControllerResult result) { 
     switch (result) { 
      case SLComposeViewControllerResultCancelled: …; break; 
      case SLComposeViewControllerResultDone:  …; break; 
     } 
     [vc dismissViewControllerAnimated:YES completion:nil]; 
    }; 
    [vc presentViewController:tweetVC animated:YES completion:nil]; 
} 

我也有在设备控制台以下消息:

Jun 12 14:40:50 zxPad2 pkd[5937] <Warning>: assigning plug-in com.apple.share.Twitter.post(6.50) to plugin sandbox 
Jun 12 14:40:50 zxPad2 pkd[5937] <Warning>: enabling pid=6180 for plug-in com.apple.share.Twitter.post(6.50) 47151597-AD1B-4874-936B-C5A7D1D3E2F1 /private/var/containers/Bundle/Application/755F79DE-E26B-4FDD-B34D-C5937E406A3D/Twitter.app/PlugIns/ShareExtension.appex 
Jun 12 14:40:50 zxPad2 ShareExtension[6183] <Warning>: host connection <NSXPCConnection: 0x126d44260> connection from pid 6180 invalidated 
Jun 12 14:41:19 zxPad2 myapp[6180] <Notice>: 2016-06-12 14:41:19.023|myapp|0x13fd14c90: SLRemoteComposeViewController: (this may be harmless) viewServiceDidTerminateWithError: Error Domain=_UIViewServiceErrorDomain Code=1 "(null)" UserInfo={Terminated=disconnect method} 
Jun 12 14:41:24 zxPad2 myapp[6180] <Warning>: plugin com.apple.share.Twitter.post invalidated 

是否有可能通过SLComposeViewController鸣叫安装Twitter的应用程序?

我注意到,当安装Twitter应用程序时,您必须登录到Twitter帐户vida OS>设置来解决此问题。