我的应用程序在 iOS 8 之前运行良好但在 iOS 9 Beta 中我无法共享 Notes 文本/图像,所以您能否建议我认为我需要为此实现什么?
问问题
1336 次
2 回答
2
如果我将 NSPredicate 用于 NSExtensionActivationRule,该使用什么?
<key>NSExtensionAttributes</key>
<dict>
<key>NSExtensionActivationRule</key>
<string>
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 > 0
OR
SUBQUERY(
extensionItems,
$extensionItem,
SUBQUERY
(
$extensionItem.attachments,
$attachment,
ANY $attachment.registeredTypeIdentifiers UTI-CONFORMS-TO "public.image"
|| ANY $attachment.registeredTypeIdentifiers UTI-CONFORMS-TO "public.png"
|| ANY $attachment.registeredTypeIdentifiers UTI-CONFORMS-TO "public.jpeg"
|| ANY $attachment.registeredTypeIdentifiers UTI-CONFORMS-TO "public.jpeg-2000"
|| ANY $attachment.registeredTypeIdentifiers UTI-CONFORMS-TO "public.tiff"
|| ANY $attachment.registeredTypeIdentifiers UTI-CONFORMS-TO "com.compuserve.gif"
|| ANY $attachment.registeredTypeIdentifiers UTI-CONFORMS-TO "com.microsoft.bmp"
).@count == $extensionItem.attachments.@count AND $extensionItem.attachments.@count < 6
).@count > 0
</string>
</dict>
于 2017-06-08T12:53:16.200 回答