私のアプリケーションでは、Twiiter を使用してツイートしています。
ユーザーの iPhone で Twitter アカウントが設定されていない場合、画面上に 1 つのアラート ポップアップが表示され、Twitter アカウントを設定し、設定ボタンをクリックすると、ユーザーは設定画面に移動します。
保存したTwitterアカウントを削除したいです。
私のアプリケーションまたはプログラムで画面を設定することから。
私のコードはこれです
if ([TWTweetComposeViewController canSendTweet])
{
NSLog(@"delete the account");
}
else{
TWTweetComposeViewController *viewController = [[TWTweetComposeViewController alloc] init];
viewController.view.hidden = YES;
viewController.completionHandler = ^(TWTweetComposeViewControllerResult result) {
NSLog(@"coming twitt 11111");
if (result == TWTweetComposeViewControllerResultCancelled) {
NSLog(@"coming twitt");
[self dismissModalViewControllerAnimated:NO];
}
};
[self presentModalViewController:viewController animated:NO];
[viewController.view endEditing:YES];
}
ヘルプのようなリンク、チュートリアル、サンプル コード、または方向性を歓迎します。