繁体   English   中英

从应用程序的保管箱中创建文件夹

[英]Create folder in dropbox from application

我需要集成Dropbox SDK时正在制作iPhone应用程序。 在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)

暂无
暂无

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

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