UIDocumentPickerController

Discussion in 'iOS Programming' started by grandM, Feb 7, 2016.

  1. grandM macrumors 6502a

    grandM

    Joined:
    Oct 14, 2013
    #1
    I was reading through some google links and noticed that this class accesses the icloud drive. UIDocumentInteractionController seems to be aimed at previewing when you know the url of the file.

    I was wondering if there was also a picker to access local files? Or is throwing them in iCloud the way to go?
     
  2. 1458279 Suspended

    1458279

    Joined:
    May 1, 2010
    Location:
    California
    #2
    The decision as to which way to go really depends on the usage. You'd have to consider if the cloud is accessible or not and if that impacts usage.
    As far as a picker to access local files, look at some of the examples, many of the photo browser apps use local directories for storage, and loading them into a picker is used in many example programs.

    I'd be surprised if Ray Wenderlich doesn't have some examples there. It's fun to go to his site just to browse around at all the stuff he has.
    http://www.raywenderlich.com/
     
  3. grandM thread starter macrumors 6502a

    grandM

    Joined:
    Oct 14, 2013
    #3
    Actually photo pickers use PHAssets. I looked into it. I thought that maybe this UIDocumentInteractionController might be useful but looking at the developer site of apple there were some notices about security and the app being left and so on. I didn't get entirely what they meant.
     
  4. 1458279 Suspended

    1458279

    Joined:
    May 1, 2010
    Location:
    California
    #4
    I'm not sure, but isn't PHAssets pretty new? I don't think it was used in most of the examples I used before.

    It's really not that hard to use write a file browser and use a picker to make a 'finder' type system. It's actually a good exercise.
     

Share This Page