2011-10-12 74 views
0

使用Dropbox的API,我試圖用自己的彈出登錄形式的任何細節登錄 -DropBox的登錄不工作

DBLoginController *dropBoxLoginController = [[DBLoginController new] autorelease]; 
dropBoxLoginController.delegate = self; 
[dropBoxLoginController presentFromController:self]; 

,它總是會引發哪些的Dropbox已經若有所思整個代碼中提供的異常警告,特別是在方法 -

-(id)initWithText:andSecret:forRequest:usingMethod: 

這無法登錄,&我也沒有辦法將使其工作。歡迎任何建議!

回答

0

我傻......(不尋常)

我沒有枝杈,該應用程序必須先登錄,任何用戶才能使用以下 -

DBSession *dbSession = 
[[[DBSession alloc] initWithConsumerKey:@"My Consumer Key" 
    consumerSecret:@"My Consumer Secret"] 
autorelease]; 
[DBSession setSharedSession:dbSession]; 

之後,用戶登錄工作正常...