Upgrade to Pro — share decks privately, control downloads, hide ads and more …

20171208 iOS11 File Management

Sponsored · Your Podcast. Everywhere. Effortlessly. Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
Avatar for Kei Ito Kei Ito
December 08, 2017

20171208 iOS11 File Management

Mobile Act OSAKA #2の資料です

Avatar for Kei Ito

Kei Ito

December 08, 2017
Tweet

More Decks by Kei Ito

Other Decks in Programming

Transcript

  1. w ࣮͸J$MPVE%SJWF஀ੜ͔࣌Β͋Δ w ͭͷϞʔυʢ6*%PDVNFOU1JDLFS.PEFʣͰΞΫηε w JNQPSU w PQFO w FYQPSU5P4FSWJDF

    w NPWF5P4FSWJDF w J04͔Βෳ਺ϑΝΠϧબ୒ରԠ 6*%PDVNFOU1JDLFS7JFX$POUSPMMFS
  2. ࢖͍ํ func open() { let picker = UIDocumentPickerViewController( documentTypes: [kUTTypeText

    as String], in: .open) picker.allowsMultipleSelection = false picker.delegate = self } func documentPicker(_ controller: UIDocumentPickerViewController, didPickDocumentsAt urls: [URL]) { // ॲཧޙͷURL͕౉͞ΕΔ }
  3. Ϟʔυʹ͍ͭͯ w ΠϯPSΞ΢τͰΠχγϟϥΠβ͕ҧ͏ // .open / .import init(documentTypes allowedUTIs: [String],

    in mode: UIDocumentPickerMode) // .exportToService / .moveToService init(url: URL, in mode: UIDocumentPickerMode) init(urls: [URL], in mode: UIDocumentPickerMode)