How to give "Share with" option while opening documents in iphone mail

Posted by rishabh on Stack Overflow See other posts from Stack Overflow or by rishabh
Published on 2012-11-26T14:31:51Z Indexed on 2012/12/05 17:04 UTC
Read the original article Hit count: 115

So I've been going through the "Document Interaction Programming Topics for iOS". I've been able to achieve the "Open with myapp" option through Mail, was wondering how can I change the option to "Share with myapp" depending upon the file types specified? This is what I've tried:

<key>CFBundleDocumentTypes</key>
<array>
    <dict>
        <key>CFBundleTypeName</key>
        <string>Document</string>
        <key>LSHandlerRank</key>
        <string>Alternate</string>
        <key>CFBundleTypeRole</key>
        <string>Owner</string>
        <key>LSItemContentTypes</key>
        <array>
            <string>public.data</string>
        </array>
    </dict>                
</array>

© Stack Overflow or respective owner

Related posts about iphone

Related posts about objective-c