redirectURI与iOS soundcloud不匹配

我正在开发一个使用soundcloud API的iOS应用程序。

我遵循这个教程: https : //github.com/soundcloud/CocoaSoundCloudAPI

一切都很好,直到login步骤..我尝试上传歌曲(只是为了尝试不同的东西),但我有相同的结果…没有字段login。

有时soundcloudpopup消失1秒后,其他时间,没有附加,UI停留在这种状态(微调活动)。

在控制台中,我有这个错误消息:

哎呀,出了问题:redirectURI不匹配

在soundcloud网站上,我放了一个这样的URI myApp:// oauth2,并且我在initialize方法中写了同样的URI。

我不知道它的工作原理,因为当我刷新编辑页面时,redirectURI字段为空…

任何想法 ?

我试图用这个代码login到soundcloud:

[SCSoundCloud requestAccessWithPreparedAuthorizationURLHandler:^(NSURL *preparedURL){ SCLoginViewController *loginViewController; loginViewController = [SCLoginViewController loginViewControllerWithPreparedURL:preparedURL completionHandler:^(NSError *error){ if (SC_CANCELED(error)) { NSLog(@"Canceled!"); } else if (error) { NSLog(@"Ooops, something went wrong: %@", [error localizedDescription]); } else { NSLog(@"Done!"); } }]; [self presentModalViewController:loginViewController animated:YES]; }]; 

谢谢 !