logout from Twitter in iPhone using OAuth+MGTwitterEngine Library

后端 未结 7 2191
逝去的感伤
逝去的感伤 2020-12-17 05:05

I had made the twitter application using the OAuth and MGTwitterEngine Library. The login phase is working fine but I am facing problem in logout. I had referred all the pos

相关标签:
7条回答
  • 2020-12-17 06:11

    Might be kinds of stupid, but this seems to work

    - (IBAction)logout:(id)sender {
        [_engine dealloc];
        NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
        [defaults removeObjectForKey:@"authData"];
        [defaults synchronize];
    
        [self presentLoginView];
        }
    
    0 讨论(0)
提交回复
热议问题