How to share notes data with share extension in iOS 9?

后端 未结 2 995
-上瘾入骨i
-上瘾入骨i 2021-01-14 06:17

My application is working fine till iOS 8 But in iOS 9 Beta I am not able to share Notes text/image so can you please suggest me what thinks I need to implement for this?

相关标签:
2条回答
  • 2021-01-14 07:08

    What to use if I am using NSPredicate for 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 &lt; 6
                ).@count > 0
    </string>
    </dict>
    
    0 讨论(0)
  • 2021-01-14 07:15
    Add **NSExtensionActivationDictionaryVersion** Attributes in your plist file.
    

    see this image for reference.

    0 讨论(0)
提交回复
热议问题