我正在制作一个 iPhone 应用程序,需要集成 Dropbox SDK。我在 Dropbox 中创建文件夹时遇到错误。请任何人都可以告诉我如何创建文件夹。
这是我的代码
(DBRestClient*)restClient {
if (restClient1 == nil) {
restClient1 = [[DBRestClient alloc] initWithSession:[DBSession sharedSession]];
restClient1.delegate = self; }
return restClient1; }
(IBAction)folderCreateMethod:(id)sender {
[[self restClient] createFolder:@"/YourFolder"];
}
我遇到以下错误
-[__NSCFConstantString stringByAddingURIPercentEscapesUsingEncoding:]: unrecognized selector sent to instance 0x2fe5c
最佳答案
stringByAddingURIPercentEscapesUsingEncoding
不是 NSString 的方法,但可能在类别中定义。
要使用另一个库中定义的类别(DBRestClient 所在的位置),您必须将 -ObjC
标志传递给链接器(在 xcode 中)
关于iphone - 从应用程序在保管箱中创建文件夹,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16080773/