Twitter + OAuth Problem -- Cancel Button
Posted
by
Adam Storr
on Stack Overflow
See other posts from Stack Overflow
or by Adam Storr
Published on 2011-01-14T06:49:56Z
Indexed on
2011/01/14
6:53 UTC
Read the original article
Hit count: 291
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!
© Stack Overflow or respective owner