$30 off During Our Annual Pro Sale. View Details »

20171208 iOS11 File Management

Kei Ito
December 08, 2017

20171208 iOS11 File Management

Mobile Act OSAKA #2の資料です

Kei Ito

December 08, 2017
Tweet

More Decks by Kei Ito

Other Decks in Programming

Transcript

  1. J04 'JMF.BOBHFNFOU .PCJMF"DU04"," JUPL!ͦΒ͔ͥ

  2. JUPL!ͦΒ͔ͥ w ͍ͱ͏͚͍ʢJUPLʣ w ɹɹɹɹɹɹͷதͷਓʢ ͸ͯͳʣ w ϞόΠϧΞϓϦΤϯδχΞ݉$&0 w IUUQJUPLKQ

    IUUQTPSBLB[FDPKQ !JUPL@UXJU
  3. J04 'JMF.BOBHFNFOU J04 )JHI4JFSSB

  4. 'JMFBQQ

  5. ৽͍͠GSBNFXPSL

  6. ৽͍͠GSBNFXPSL w 'JMF1SPWJEFS w 'JMF1SPWJEFS6*

  7. 'JMF1SPWJEFS w ΄͔ͷΞϓϦ͔ΒࣗΞϓϦͷTBOECPYʹΞΫηε͢ΔͨΊͷ &YUFOTJPO w Ϋϥ΢υαʔϏεͷΫϥΠΞϯτͳͲͰ࣮૷͞Ε͍ͯΔ w %SPQCPY w (PPHMFυϥΠϒ

    w 0OF%SJWF w #PYͳͲ
  8. 'JMF1SPWJEFS6* w υΩϡϝϯτϒϥ΢β্ͰಠࣗͷBDUJPOΛ࣮૷͢Δ &YUFOTJPO

  9. ͋Εʁ ͋·Γ࢖͏͜ͱͳ͍͔΋ ɾɾɾ

  10. ؆୯ʹϑΝΠϧΛ ڞ༗Ͱ͖Δ࢓૊Έ

  11. %PDVNFOUTσΟϨΫτϦΛڞ༗ w *OGPQMJTUʹ:&4Ͱ௥ه w %PDVNFOUCBTFE w 6*4VQQPSUT%PDVNFOU#SPXTFS w ඇ%PDVNFOUCBTFE w

    6*'JMF4IBSJOH&OBCMFE w -44VQQPSUT0QFOJOH%PDVNFOUT*O1MBDF
  12. %PDVNFOUTσΟϨΫτϦΛڞ༗ w ߲໨௥Ճ͢Δ͚ͩͰ؆୯ڞ༗

  13. ϑΝΠϧʹ ΞΫηε͢Δํ๏

  14. ϑΝΠϧʹΞΫηε͢Δํ๏ w 6*%PDVNFOU#SPXTFS7JFX$POUSPMMFS w 6*%PDVNFOU1JDLFS7JFX$POUSPMMFS

  15. w ϑϧΞΫηεͰ͖ͦ͏ͳ7JFX$POUSPMMFS w ੍͔͠͠ݶࣄ߲͕ͨ͘͞Μ͋Δ w "QQͷ3PPU7JFX$POUSPMMFSͰͳ͚Ε͹ͳΒͳ͍ w 6*%PDVNFOUPS/4'JMF1SFTFOUFS /4'JMF$PPSEJOBUPSͷܗࣜͰͷΈΞΫηεՄೳ w

    %PDVNFOU#BTFEͳΞϓϦઐ༻ͱ͍͏ײ͡ 6*%PDVNFOU#SPXTFS7JFX$POUSPMMFS
  16. w ࣮͸J$MPVE%SJWF஀ੜ͔࣌Β͋Δ w ͭͷϞʔυʢ6*%PDVNFOU1JDLFS.PEFʣͰΞΫηε w JNQPSU w PQFO w FYQPSU5P4FSWJDF

    w NPWF5P4FSWJDF w J04͔Βෳ਺ϑΝΠϧબ୒ରԠ 6*%PDVNFOU1JDLFS7JFX$POUSPMMFS
  17. %PDVNFOU1JDLFSʹ͍ͭͯ ΋͏গ͠ৄ͘͠

  18. ࢖͍ํ 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͕౉͞ΕΔ }
  19. Ϟʔυʹ͍ͭͯ 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)
  20. JNQPSU w ֎෦ϑΝΠϧΛϩʔΧϧʹίϐʔ w ίϐʔઌ͸ࣗΞϓϦTBOECPY಺ͷUFNQPSBSZQBUI w ֎෦ͷΦϦδφϧϑΝΠϧ͸ͦͷ··ҡ࣋͞ΕΔ

  21. PQFO w ֎෦ϑΝΠϧΛͦͷ··։͘ w ڞ༗σΟϨΫτϦͷ63-͕౉͞ΕΔ w ֎෦ͷΦϦδφϧϑΝΠϧΛมߋͰ͖Δ w 63-<TUBSUcTUPQ>"DDFTTJOH4FDVSJUZ4DPQFE3FTPVSDF

  22. FYQPSU5P4FSWJDF w ϩʔΧϧϑΝΠϧΛ֎෦ʹίϐʔ w ڞ༗σΟϨΫτϦͷ63-͕౉͞ΕΔ w ίϐʔઌͷϑΝΠϧΛมߋͰ͖Δ͕ɺ༻్ͱͯ͠͸ ૝ఆ͞Ε͍ͯͳ͍໛༷

  23. NPWF5P4FSWJDF w ϩʔΧϧϑΝΠϧΛ֎෦ʹҠಈ w ϩʔΧϧͷΦϦδφϧ͸ͳ͘ͳΔ w ڞ༗σΟϨΫτϦͷ63-͕౉͞ΕΔ w ҠಈઌͷϑΝΠϧΛมߋͰ͖Δ w

    63-<TUBSUcTUPQ>"DDFTTJOH4FDVSJUZ4DPQFE3FTPVSDF
  24. ஫ҙ w ڞ༗σΟϨΫτϦͷ63-͸ΞϓϦͰอଘ͠ͳ͍ w 63-CPPLNBSL%BUB ʜ Λ࢖͏ w ίϯϑϦΫτ͸ࣗલͰͳΜͱ͔ w

    ڞ༗σΟϨΫτϦͷ63-ઌͷσʔλ͸֎෦͔Βͷ มߋΛஞ࣍൓ө
  25. ·ͱΊ w Ϋϥ΢υαʔϏεͷϑΝΠϧΛͪΐͬͱಡΈॻ͖͢ Δ͚ͩͳΒ6*%PDVNFOU1JDLFSΛ࢖͑͹0, w ΈΜͳJ04ϕʔεͰ͍͖·͠ΐ͏ʂ