Newbie question.
I have opened an account, created a upload Preset. And then strait off taken the example to upload from iOS. But all i get is.
-[__NSDictionaryM cl_valueForKey:defaultValue:]: unrecognized selector sent to instance 0x166ca530
Code is:
- (BOOL) sendPictureToCloudinary:(UIImage *)imageToSend attachedToBarcode:(NSString *)barcode{
if(!imageToSend)
return FALSE;
NSData *imageData = UIImagePNGRepresentation(imageToSend);
CLCloudinary *cloudinary = [[CLCloudinary alloc] init];
[cloudinary.config setValue:@"yyyyyyyyyyy" forKey:@"cloud_name"];
CLUploader* uploader = [[CLUploader alloc] init:cloudinary delegate:self];
[uploader unsignedUpload:imageData uploadPreset:@"xxxxx" options:@{}]
return TRUE;
}
Post is closed for comments.
Comments
1 comment