2012-09-12 28 views
1

我正在使用iPhone中的Drop box應用程序,使用Dropbox_SDK開發此應用程序,我從我的dropBox帳戶上載和下載文件,其工作良好。 然後我試圖註銷iPhone中的下拉框帳戶,但我不知道整合, 如何做到這一點?請幫我如何在登錄框iPhone應用程序中集成登出功能?

由於提前

- (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 

    } 
+0

你嘗試[DBSession sharedSession] unlinkAll]。 – Wolverine

回答

5

使用此命令註銷收發箱帳戶在iPhone應用程序中

[[DBSession sharedSession] unlinkAll]; 
0

你不能退出,你只能用你的設備的- (void)cancelAllRequests;。而清除緩存取消該請求。您將自動註銷。

+0

感謝您的回覆 – SampathKumar