Reputation: 519
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
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