gpt4 book ai didi

ios - 如何处理 iOS 6 中的重复推文错误

转载 作者:可可西里 更新时间:2023-11-01 04:59:20 25 4
gpt4 key购买 nike

<分区>

我在它的完成 block 中处理了推文取消和完成条件,它正在工作,当我发送重复的推文时,它显示重复的推文错误消息,好的,但我的问题是在重复错误之后,它显示推文已完成消息,所以我想停止如果出现重复错误消息,请发送已完成的消息,请解决我的问题。这是我的工作代码。

self.tweetSheet = [[TWTweetComposeViewController alloc] init];
[self.tweetSheet setInitialText:@"Some message."];
[self.navigationController presentModalViewController:self.tweetSheet animated:YES];
// Called when the tweet dialog has been closed
self.tweetSheet.completionHandler = ^(TWTweetComposeViewControllerResult result)
{
NSString * msg;
if (result == TWTweetComposeViewControllerResultCancelled)
{
msg = @"Tweet compostion was canceled.";
}
else if (result == TWTweetComposeViewControllerResultDone)
{
NSLog(@"result %d",result);
msg = @"Tweet composition completed.";
}

UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:@"Tweet Status" message:msg delegate:nil cancelButtonTitle:@"OK" otherButtonTitles:nil];
[alertView show];
// Show alert to see how things went...
[self.tweetSheet dismissModalViewControllerAnimated:YES];

// Dismiss the controller
};
}

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com