当我在Safari中从网站复制文本时,创建了两个粘贴板项目。这是粘贴板项目的输出
(
{
"Apple Web Archive pasteboard type" = < [...archive...] >;
"public.text" = "pages of a journal,";
},
{
"iOS rich content paste pasteboard type" = <694f5320 72696368 20636f6e 74656e74 20706173 74652070 61737465 626f6172 64207479 7065>;
}
)什么是"iOS富内容粘贴粘贴板类型“?数据实际上代表了什么?其他应用程序是否使用过这种表示法?
谢谢。
发布于 2020-05-12 02:54:24
这个问题已经提出很久了,但不管怎么说,看起来我已经在a patch for a WebKit bug中找到了答案。
下面是补丁中的代码片段,演示了这种粘贴板格式只是UIKit的一个标志。不过,我不确定“两步粘贴”到底是怎么回事。
// Flag for UIKit to know that this copy contains rich content. This will trigger a two-step paste.
static NSString* webIOSPastePboardType = @"iOS rich content paste pasteboard type";
[representations setValue:webIOSPastePboardType forKey:webIOSPastePboardType]; https://stackoverflow.com/questions/17428204
复制相似问题