0

Twitter+OAuth API を使用してステータス更新のコールバック メソッドを適切に設定するにはどうすればよいですか? (http://github.com/bengottlieb/Twitter-OAuth-iPhone)

現在、リクエストが成功したかどうかを判断するために以下を使用しています。

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

}

リクエストが失敗したかどうかを判断するには、何を使用しますか?

4

1 に答える 1

0

ドキュメントを読むと、私の問題を解決するために以下を実装するのに役立ちます。

- (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];
}
于 2010-09-27T17:59:46.483 に答える