我想要我的扩展支持文本,网址,视频和10张图片.
我已将plist配置如下:
这工作正常,但我希望我的扩展程序不支持图像和视频同时.
我知道我很可能必须构建一个"SUBQUERY(..)"语句.我的谓词是这样的:
SUBQUERY ( extensionItems, $extensionItem, SUBQUERY ( $extensionItem.attachments, $attachment,( NOT ( ANY $attachment.registeredTypeIdentifiers UTI-CONFORMS-TO "public.image" AND ANY $attachment.registeredTypeIdentifiers UTI-CONFORMS-TO "public.movie") ) AND ( ANY $attachment.registeredTypeIdentifiers UTI-CONFORMS-TO "public.image" || ANY $attachment.registeredTypeIdentifiers UTI-CONFORMS-TO "public.plain-text" || ANY $attachment.registeredTypeIdentifiers UTI-CONFORMS-TO "public.url" || ANY $attachment.registeredTypeIdentifiers UTI-CONFORMS-TO "public.movie" || ANY $attachment.registeredTypeIdentifiers UTI-CONFORMS-TO "public.text") ).@count < 10 ).@count == 1
但它对我不起作用.在这种情况下我该如何使用.谢谢你的帮助!