【发布时间】:2016-07-11 10:40:44
【问题描述】:
我正在集成 Podio SDK。我正在获取所有数据项值并进行更新,但图像不会上传。任何的想法?我不知道如何在 Podio SDK 上上传图片。
NSData *data = UIImageJPEGRepresentation(self.ImgView_Sign.image, 0.8f);
[[[PKTFile uploadWithData:data fileName:@"mobi.jpg"] pipe:^PKTAsyncTask *(PKTFile *file){
PKTItem *item = [PKTItem itemForAppWithID:431525395];
item[@"title"] = @"CHEKRI";
item[@"signautre"] = file;
return [item save];
}] onSuccess:^(PKTItem *item){
NSLog(@"PKT FILE is %@",item);
} onError:^(NSError *error){
NSLog(@"Error file %@",error);
}];
【问题讨论】:
-
请展示您认为最好的尝试。首选代码,没有位图。谢谢。
-
Error Domain=PodioServerErrorDomain Code=404 “找不到匹配的操作。缺少参数:源。” UserInfo={PKTErrorDescription=找不到匹配的操作。缺少参数:source., PKTErrorParameters={ }, PKTErrorPropagate=false, NSLocalizedDescription=找不到匹配的操作。缺少参数:source., PKTError=not_found} 我收到此错误,请告诉我如何修复它..
标签: ios objective-c iphone podio