user2185354
user2185354

Reputation: 519

Create folder in dropbox from application

I'm making an iPhone application were I need to integrate Dropbox SDK. I'm getting error while creating a folder in Dropbox.Please anyone can tell me how to create folder.

Here is my code

(DBRestClient*)restClient { 
 if (restClient1 == nil) {
    restClient1 = [[DBRestClient alloc] initWithSession:[DBSession sharedSession]];
    restClient1.delegate = self; }
    return restClient1; }

(IBAction)folderCreateMethod:(id)sender {
  [[self restClient] createFolder:@"/YourFolder"];

   }

I'm getting below error

-[__NSCFConstantString stringByAddingURIPercentEscapesUsingEncoding:]: unrecognized selector sent to instance 0x2fe5c

Upvotes: 0

Views: 214

Answers (1)

Daij-Djan
Daij-Djan

Reputation: 50089

stringByAddingURIPercentEscapesUsingEncoding is not a method of NSString but likely defined in a category.

To use categories defined in another library -- where DBRestClient is -- you have to pass the -ObjC flag to the linker (in xcode)

Upvotes: 1

Related Questions