iOS Tutorial Picking external documents with DocumentPickerViewController

Discussion in 'iOS Tutorials' started by Erel, Nov 15, 2018.

  1. Erel

    Erel Administrator Staff Member Licensed User

    [​IMG]]

    iUI8 v1.60 adds a new type named DocumentPickerViewController. This picker allows the user to choose an external document. The document will be imported (copied) to your app file system.

    Example:
    Code:
    Sub Page1_Click
       DocumentPicker.InitializeImport(
    "picker"Array("public.image"))
       DocumentPicker.Show(Page1, Button1)
       
    Wait For Picker_Complete (Success As Boolean, URLs As List)
       
    If Success Then
           ImageView1.Bitmap = 
    LoadBitmap(URLs.Get(0), "")
       
    End If
    End Sub
    - List of common document types: https://developer.apple.com/library...es/System-DeclaredUniformTypeIdentifiers.html

    - In case of file URLs the URL is converted to a file path automatically.
    - Note that you should add #MinVersion: 8 when using iUI8 library.
     
    MarcoRome likes this.
Loading...
  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