DropBox登录无法正常工作

时间:2011-10-12 13:33:55

标签: iphone objective-c login dropbox

使用DropBox api我尝试使用弹出式登录表单

登录任何详细信息
DBLoginController *dropBoxLoginController = [[DBLoginController new] autorelease];
dropBoxLoginController.delegate = self;
[dropBoxLoginController presentFromController:self];

它将始终触发DropBox在其代码中仔细提供的异常警告,特别是在方法中 -

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

无法登录,&我无能为力将使它发挥作用。欢迎任何建议!

1 个答案:

答案 0 :(得分:0)

愚蠢的我......(并不罕见)

我没有认为应用必须首先登录,在任何用户可以之前,使用以下内容 -

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

之后,用户登录正常......