Twitterの+のOAuth APIを使用してiOSアプリからツイートしようとしたときにどのように私はエラーを引いていますか?

StackOverflow https://stackoverflow.com/questions/3800935

質問

どのように適切にセットアップTwitterの+のOAuth APIを使用して、ステータス更新のためのコールバックメソッドのですか? (http://github.com/bengottlieb/Twitter-OAuth-iPhone)

今私は、要求が成功したかどうかを判断するために、次を使用しています

- (void)requestSucceeded:(NSString *)connectionIdentifier {
NSLog(@"Statuses Sent");
//[loadingActionSheet dismissWithClickedButtonIndex:0 animated:YES];
//[loadingActionSheet release];

}

私は、要求が失敗したかどうかを判断するために使うのでしょうか?

役に立ちましたか?

解決

ドキュメントを読むことは私の問題を解決するために、以下を実施し、助け

- (void) requestFailed:(NSString *)connectionIdentifier withError: (NSError *) error; {
NSLog(@"Status Update Failed");
NSLog(@"Error: %@", error);
[loadingActionSheet dismissWithClickedButtonIndex:0 animated:YES];
[loadingActionSheet release];
alert = [[UIAlertView alloc]
         initWithTitle:@"Error" message:@"Twitter did not receive your update, please try again later." delegate:self cancelButtonTitle:@"OK" otherButtonTitles:nil];
[alert show];
[alert release];
}
ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top