所有我正在努力使股票扩展工作正常,但我需要像假设一样
<dict>
<key>NSExtensionActivationRule</key>
<string>SUBQUERY (
extensionItems,
$extensionItem,
SUBQUERY (
$extensionItem.attachments,
$attachment,
ANY $attachment.registeredTypeIdentifiers UTI-CONFORMS-TO "public.image"
).@count <= 10).@count >= 1
OR
SUBQUERY(extensionItems, $extensionItem, SUBQUERY($extensionItem.attachments, $attachment, SUBQUERY($attachment.registeredTypeIdentifiers, $uti, NOT $uti UTI-CONFORMS-TO "public.url" AND NOT $uti UTI-CONFORMS-TO "public.file-url" AND $uti UTI-CONFORMS-TO "public.plain-text").@count >= 1).@count >= 1).@count >= 1
OR
SUBQUERY(extensionItems,$extensionItem,SUBQUERY($extensionItem.attachments,$attachment,ANY $attachment.registeredTypeIdentifiers UTI-CONFORMS-TO "public.movie").@count == $extensionItem.attachments.@count AND $extensionItem.attachments.@count <= 1 ).@count == 1
</string>
</dict>
以上查询为图像工作,但没有public.movie
可以任何人帮助我。并且所有类型都可以看到共享扩展。即vcards,联系人等我只需要文字,照片和视频。
在子查询的以下部分中将计数10更改为1:
...
$attachment.registeredTypeIdentifiers UTI-CONFORMS-TO "public.image"
).@count <= 10).@count >= 1
...
至
...
$attachment.registeredTypeIdentifiers UTI-CONFORMS-TO "public.image"
).@count <= 1).@count >= 1
...
对于其余的项目电影,网址很好。