iphone - 从应用程序在保管箱中创建文件夹

标签 iphone ios dropbox

我正在制作一个 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/

相关文章:

macos - 以编程方式触发 macOS 上仅在线的 Dropbox 文件下载

svn - 将 Subversion 与 DropBox 结合使用

iOS:我可以检测设备屏幕是否打开/关闭吗?

ios - 当应用程序在后台运行或关闭时,Flutter Firebase Messaging 在 IOS 上不起作用

iphone - 如何在编辑模式下暂停/禁用 UITableViewCell 上的 UILongPressGestureRecognizer

ios - 动态添加参数到起始URL

iOS/Objective-C UILabel 文本字距调整

javascript - 如何使用reduce正确链接promise

iphone - 调整表格 View 大小

iphone - 显示 NSPlaceholderstring 泄漏的仪器