我在iOS中使用Social Framework
进行Twitter集成
SLComposeViewController * composeVC = [SLComposeViewController composeViewControllerForServiceType:SLServiceTypeTwitter];
success = [composeVC setInitialText:[NSString stringWithFormat:@"xxx"]];
SLComposeViewControllerCompletionHandler myBlock = ^(SLComposeViewControllerResult result)
{
if (result == SLComposeViewControllerResultCancelled)
{
}
else
{
[self shareApiCall:service];
}
[composeVC dismissViewControllerAnimated:YES completion:Nil];
};
由于我们正在推文相同的事情,它在代码中取得了成功,但随后重复了弹出窗口。有什么方法我们可以知道发布的推文是一个重复的推文(通过代码)?