callback - How do I Pull in errors when attempting to tweet from an iOS app using the Twitter+OAuth API? -
How can I properly set the callback method for status updates using the Twitter + O API? (Http://github.com/bengottlieb/Twitter-OAuth-iPhone)
Right now, I'm using the following to determine whether a request has succeeded:
- (empty) request succeeded: (nssting *) connection identifier {nslog (@ "sent status"); // [loadingActionSheet was rejected with: FlightButton Index: 0 Animated: Yes]; // [loadingActionSheet release];
To solve my problem, implement the following Docs helps: - (zero) requestFailed: (NSString *) connectionIdentifier withError: (NSError *) error; {NSLog (@ "Status update failed"); NSLog (@ "error:% @", error); [LoadingActionSheet rejected withChildButton Index: 0 Animated: Yes]; [LoadingActionSheet release]; Warning = [[UIAlertView alloc] initWithTitle: @ "error" message: @ "Your update to Twitter has not received, please try again later." Representative: self cancel buttonTitle: @ "OK" other button titles: zero]; [Alerts show]; [Warning issued]; }
Comments
Post a Comment