Twitter + OAuth Problem -- Cancel Button
- by Adam Storr
Hi everyone,
I'm implementing OAuth to post on Twitter... which works perfectly. My issue is for those who entered the Twitter login area by accident and want to press the "Cancel" button. Unfortunately, the "Cancel" button is dismissed but then immediately reappears.
Here is the code for the "Cancel" button:
- (void)cancel:(id)sender {
if ([_delegate respondsToSelector: @selector(OAuthTwitterControllerCanceled:)]) [_delegate OAuthTwitterControllerCanceled: self];
[self performSelector: @selector(dismissModalViewControllerAnimated:) withObject: (id) kCFBooleanTrue afterDelay: 0.0];
}
I think what I need to do is put the right code in the viewDidDisappear area... the problem is I don't know what code to put in.
Any help would be great! Thanks so much!