简体   繁体   English

Dropbox不再链接-注册表不断出现

[英]Dropbox is no longer linking - sign up sheet keeps appearing

I just opened a project that I hadn't used since updating to Xcode 5.1. 我刚刚打开了一个自从更新到Xcode 5.1以来从未使用过的项目。 It was all working fine previously. 以前一切都很好。 Now, whenever I attempt to link to Dropbox, it never passes this line 现在,每当我尝试链接到Dropbox时,它都不会通过此行

    if([[DBSession sharedSession] handleOpenURL:url])

in AppDelegate handleOpenUrl: . AppDelegate handleOpenUrl: So when the Dropbox sign up sheet appears, I can enter my username and password, then the sheet is dismissed, but nothing happens and it is not linked . 因此,当出现Dropbox注册表单时,我可以输入我的用户名和密码,然后该表单被关闭,但是什么也没有发生,并且没有链接

Any ideas? 有任何想法吗? Any help would be greatly appreciated! 任何帮助将不胜感激!

I just needed to update to using 我只需要更新为

    - (BOOL)application:(UIApplication *)app openURL:(NSURL *)url  sourceApplication:(NSString *)source annotation:(id)annotation {

I was still using the deprecated version 我仍在使用不推荐使用的版本

    - (BOOL)application:(UIApplication *)application handleOpenURL:(NSURL *)url

Now it is working fine. 现在工作正常。 =D = D

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM