[英]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.