我使用AES算法加密图像。当我在其中使用此图像时,IKImageBrowserView
它会正确显示图像,但我无法将图像拖放到粘贴板。我已经IKImageBrowserView
像这样将图像表示设置为图像对象
- (NSString *) imageRepresentationType
{
return IKImageBrowserNSDataRepresentationType;
}
- (id) imageRepresentation
{
return [[NSData dataWithContentsOfFile:path]decryptWithString:PASS];
}
但是当我这样给予时它的工作
- (NSString *) imageRepresentationType
{
return IKImageBrowserPathRepresentationType;
}
- (id) imageRepresentation
{
return path;
}
上面的代码是有效的,因为当我从中拖动图像IKImageBrowserView
时会返回图像的路径。
现在我需要将加密图像拖放IKImageBrowserView
到粘贴板中。