iosobjective-cdropboxlogout

How to integrate Logout functionality in dropbox iPhone app?


I am working in Drop box application in iPhone, Using Dropbox_SDK to develop this application, I have upload and download a file from my dropBox account, its working good. Then I tried to Log Out the dropbox account in iPhone, but i didn't know that integration, How to do this?

- (void)viewDidLoad
{
    UIButton *Logout =[[UIButton buttonwithtype:UIButtonTypeRoundedRect];
    Logout.frame=cgrectmake(10,10,100,50);
    [Logout setTitle:@"Log Out" Forstate:UIControlStateNormal];
    [Logout addTarget:self action:@selector(Method)ForcontrolEvent:UIControlEventTouchUpInside];
    [Self.view addsubview:Logout];
}

-(void)Method
{

    //Logout Integration

}

Solution

  • Used this command to Log out Drop box account in iPhone application

     [[DBSession sharedSession] unlinkAll];