はじめてのDrag&Drop

9d1961575e45a8286cdde5f86dbba312?s=47 akatsuki174
February 02, 2018

 はじめてのDrag&Drop

2018/02/02(金) LT型勉強会『iOS』
https://supporterzcolab.com/event/269/

9d1961575e45a8286cdde5f86dbba312?s=128

akatsuki174

February 02, 2018
Tweet

Transcript

  1. ͸͡ΊͯͷDrag&Drop @akatsuki174

  2. ࣗݾ঺հ • ਢ౻ຘ • גࣜձࣾZaimॴଐ • iOSΤϯδχΞ • Twitter, Qiita,

    SlideShare, Github, SpeakerDeck, ͸ͯͳϒϩά →akatsuki174
  3. ???ͷӡӦɹɹɹɹɹ

  4. ɾDrag&Dropͱ͸ ɾiOSʹ͓͚ΔDrag&Drop ɾDrag&Dropͷ࢖͍Ͳ͜Ζ ɾDrag&Dropͷ׆༻ࣄྫ ɾiOS11·ͰͷDrag&Dropͷ࣮૷ ɾiOS11͔ΒͷDrag&Dropͷ࣮૷ ࠓ೔࿩͢͜ͱ

  5. ΞϓϦؒDrag&Dropʹؔͯ͠͸ؒʹ߹Θ ͳ͔ͬͨ&γϛϡϨʔλͰ͏·͘SplitView Λ࡞Εͳ͔ͬͨͷͰࠓճ͸ͳ͠Ͱ… ࠓ೔࿩͢͜ͱ

  6. Qiitaʹৄ͠ΊͷࢿྉΛ(͍͔ͭ͘෼ׂͯ͠ʁ) ্͛Α͏ͱࢥͬͯ·͢ɻ ͍ͭʹͳΔ͔Θ͔Γ·ͤΜ͕ͪΌΜͱ… ͪΌΜͱ… _(:3 ʯ㲃)_ŰƄŦŕ ޙ೔…

  7. ɾiOSΤϯδχΞͷํ ɾiOSΞϓϦΛͳΜͱͳ͍ͬͨ͘͜͡ͱ͕ ɹ͋Δํ ɾiPhoneΛ͍࣋ͬͯΔํ ࠷ॳʹ֬ೝ

  8. ը໘্ͷԾ૝తͳ෺ମΛҠಈ͢ΔͨΊͷ άϥϑΟΧϧϢʔβΠϯλϑΣʔε্ͷ ૢ࡞ͷҰͭ by Wikipedia Drag&Dropͱ͸

  9. ώϡʔϚϯΠϯλϑΣʔεΨΠυϥΠϯͰ͸ ʮDrag&Drop͸ޮ཰తɺ௚ײతͳػೳͰ ͋ΔͨΊɺγεςϜશମʹ࣮૷͞ΕΔ͜ͱ͕ ظ଴͞ΕΔʯ ͱॻ͔Ε͍ͯ·͢ Drag&Dropͱ͸

  10. ɾΞϓϦ಺orΞϓϦؒͰσʔλͷίϐʔɺ ɹҠಈ͕Ͱ͖Δ ɾυϩοϓ࣌ʹॳΊͯσʔλͷಡΈࠐΈ͕ ɹ࢝·Δ ɾෳ਺ͷσʔλܗࣜΛ࣋ͭ͜ͱ͕Ͱ͖Δ ɾυϩοϓઌͷΞϓϦΛ੍ݶ͢Δ͜ͱ͕ ɹͰ͖Δ iOSʹ͓͚ΔDrag&Drop

  11. ɾࣸਅΞϓϦ͔ΒϝʔϧʹࣸਅΛషΓ෇͚ ɾWebϖʔδ্ͷࣸਅΛࣸਅΞϓϦʹอଘ ɾΧϨϯμʔ্ʹ͋ΔΠϕϯτΛϝʔϧ ɹΞϓϦʹషΓ෇͚ ɾςΩετΛผͷΞϓϦʹషΓ෇͚ etc… Drag&Dropͷ࢖͍Ͳ͜Ζ

  12. ϝϞா Drag&Dropͷ׆༻ࣄྫ

  13. Amazon Drag&Dropͷ׆༻ࣄྫ

  14. ଞʹ΋… ɾHomeը໘ ɾAppleͷϦϚΠϯμʔ / ΧϨϯμʔ ɾLifebearʢεέδϡʔϧΞϓϦʣ ɾMoneytreeʢՈܭ฽ʣ ɾCanvaʢը૾ฤूʣ etc… Drag&Dropͷ׆༻ࣄྫ

  15. ࠓճ঺հ͍ͯ͠Δίʔυ͸GitHubʹ ্͛ͯ·͢ https://github.com/akatsuki174/ DragAndDropSample ͔͜͜Β࣮૷ͷ࿩

  16. →UIPanGestureRecognizerΛ࢖࣮ͬͯ૷ iOS11·ͰͷDrag&Dropͷ࣮૷

  17. iOS11·ͰͷDrag&Dropͷ࣮૷

  18. iOS11·ͰͷDrag&Dropͷ࣮૷

  19. iOS11·ͰͷDrag&Dropͷ࣮૷

  20. →UIDragInteractionDelegateɺ ɹUIDropInteractionDelegateͳͲɺ ɹiOS11͔Βొ৔ͨ͠APIΛ࢖ͬͯ ɹ࣮૷Ͱ͖Δ iOS11͔ΒͷDrag&Dropͷ࣮૷

  21. iOS11͔ΒͷDrag࣮૷

  22. iOS11͔ΒͷDrag࣮૷

  23. iOS11͔ΒͷDrag࣮૷

  24. iOS11͔ΒͷDrag࣮૷

  25. iOS11͔ΒͷDrag࣮૷

  26. iOS11͔ΒͷDrag࣮૷

  27. iOS11͔ΒͷDrag࣮૷

  28. iOS11͔ΒͷDrag࣮૷

  29. iOS11͔ΒͷDrag࣮૷

  30. iOS11͔ΒͷDrag࣮૷

  31. iOS11͔ΒͷDrag࣮૷

  32. iOS11͔ΒͷDrop࣮૷

  33. iOS11͔ΒͷDrop࣮૷

  34. iOS11͔ΒͷDrop࣮૷

  35. iOS11͔ΒͷDrop࣮૷

  36. ɾσʔλͷಡΈࠐΈ͸υϩοϓ͞Ε͔ͯΒ ɹߦΘΕΔ ɾͦΕΏ͑ɺυϩοϓ͔ͯ͠Βը໘ʹ൓ө ɹ͞ΕΔ·Ͱ͕͔͔࣌ؒΔ͜ͱ͕͋Δ ɾͦͷ৔߹͸iOS͕উखʹΞϥʔτΛग़ͯ͠ ɹਐḿදࣔΛͯ͘͠ΕΔ iOS11͔ΒͷDrop࣮૷

  37. iOS11͔ΒͷDrop࣮૷

  38. ͦͷଞ UITableViewɺUICollectionViewʹ͓͚Δ D&D΋ศརʹͳ͍ͬͯΔͷͰ ௐ΂ͯΈΔͱྑ͍Ͱ͢ ̱

  39. ͓͢͢Ίॻ੶ ʰiOS 11 Programmingʱ ࠓճͷࢿྉ͸ୈ6ষ Drag and DropΛ ͓͓͍ʹࢀߟʹͯ͠࡞͍ͬͯ·͢

  40. WWDC2017Ͱͷؔ࿈ηογϣϯ ɾIntroducing Drag and Dropʢ203ʣ ɾData Delivery with Drag and

    ɹDropʢ227ʣ ɾMastering Drag and Dropʢ213ʣ ɾDrag and Drop with Collection and Table ɹViewʢ223ʣ