iOS Question correct way to Open external files with your app

Discussion in 'iOS Questions' started by n3t, Jun 19, 2015.

  1. n3t

    n3t Member Licensed User

    From iOS Tutorial I try set my App as Target for all type o document.
    First Question:
    for all file type is sufficent to add
    #PlistExtra:<string>public.content (kUTTypeContent)</string>
    or I need a single string for any file?

    Second Question:
    I add the below code in my app but from Fhoto (as sample) when I click on "Share button) my app is not displayed.
    I'm missing something?

    'Code module
    #Region Project Attributes
    #ApplicationLabel: Cloud2DriveMobile
    #Version: 1.0.0
    'Orientation possible values: Portrait, LandscapeLeft, LandscapeRight and PortraitUpsideDown
    #iPhoneOrientations: Portrait
    #iPadOrientations: Portrait

    'registered extension
    #PlistExtra:<key>CFBundleTypeName</key><string>C2D Files</string>
    #PlistExtra:<string>public.content (kUTTypeContent)</string>
    #PlistExtra:<string>public.png (kUTTypePNG)</string>
    #PlistExtra:<string>public.jpeg (kUTTypeJPEG)</string>
    #PlistExtra:<string>public.tiff (kUTTypeTIFF)</string>
    #PlistExtra:<string>public.mpeg-4 (kUTTypeMPEG4)</string>
    #PlistExtra:<string>public.mp3 (kUTTypeMP3)</string>
    #End Region

    PS: Tested in Debug mode and also Release Mode
    Last edited: Jun 19, 2015
  2. n3t

    n3t Member Licensed User

    Same result on a Ipad Mini 1° version with iOS 7.1.2.
    My app is not visible from other apps.

  3. Erel

    Erel Administrator Staff Member Licensed User

    The constant in the parenthesis should be removed: <string>public.content</string>
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice