Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
はじめてのDrag&Drop
Search
akatsuki174
February 02, 2018
Programming
280
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
はじめてのDrag&Drop
2018/02/02(金) LT型勉強会『iOS』
https://supporterzcolab.com/event/269/
akatsuki174
February 02, 2018
More Decks by akatsuki174
See All by akatsuki174
逆向きUIの世界 〜iOSアプリのRTL言語対応〜
akatsuki174
1
730
逆向きUIの世界〜AndroidアプリのRTL言語対応〜
akatsuki174
1
1.2k
私が変えてきたこと、変えなかったこと
akatsuki174
2
1.1k
最近読んでいる本-読書シェア会vol.1
akatsuki174
2
300
SwiftUI、UIKitでキャプチャを撮ろう!
akatsuki174
1
160
Appleにおけるプライバシーの全容を把握する
akatsuki174
0
6.4k
近年のAppleにおける位置情報とプライバシー
akatsuki174
3
530
オフライン勉強会ぼっち対策
akatsuki174
1
750
Xcode 15の新機能
akatsuki174
0
2.9k
Other Decks in Programming
See All in Programming
大喜利で理解するLLM as a Judge / Understanding LLM-as-a-Judge through Ogiri
rockname
0
190
SREの越境 / SRE Collaboration
y0hgi
2
290
パズルゲームの作り方 / how to make puzzle games
kaityo256
PRO
2
260
JPUG勉強会 OSSデータベースの内部構造を理解しよう(第2回)
oga5
0
290
setup-vp GitLab対応の裏側
naokihaba
0
150
モデルのリファクタリングが難しいと思ったら、そもそも複雑だったのはビジネス仕様だった ? / is-the-business-domain-the-real-complexity
hatsu38
0
440
wkhtmltopdfの次どうするか問題2026
willnet
2
1.8k
Augmenting AI with the Power of Jakarta EE
ivargrimstad
0
400
Heart of Swift Concurrency
koher
0
1.2k
標準パッケージに uuid が追加された 背景から見る Go らしい意思決定 / go_127_uuid_decision
convto
5
9.5k
選挙速報を多くのユーザーへ 届ける Live Activities 設計
hamayokokuririn
0
220
Java 27新機能 / Java 27 new features
kishida
2
190
Featured
See All Featured
16th Malabo Montpellier Forum Presentation
akademiya2063
PRO
0
390
Building Flexible Design Systems
yeseniaperezcruz
330
41k
How GitHub (no longer) Works
holman
316
150k
So, you think you're a good person
axbom
PRO
2
2.2k
The innovator’s Mindset - Leading Through an Era of Exponential Change - McGill University 2025
jdejongh
PRO
1
350
Building AI with AI
inesmontani
PRO
1
1.3k
Building Better People: How to give real-time feedback that sticks.
wjessup
370
20k
Sam Torres - BigQuery for SEOs
techseoconnect
PRO
0
560
Neural Spatial Audio Processing for Sound Field Analysis and Control
skoyamalab
0
540
Heart Work Chapter 1 - Part 1
lfama
PRO
10
36k
HTML-Aware ERB: The Path to Reactive Rendering @ RubyCon 2026, Rimini, Italy
marcoroth
5
760
Docker and Python
trallard
47
4.2k
Transcript
͡ΊͯͷDrag&Drop @akatsuki174
ࣗݾհ • ਢ౻ຘ • גࣜձࣾZaimॴଐ • iOSΤϯδχΞ • Twitter, Qiita,
SlideShare, Github, SpeakerDeck, ͯͳϒϩά →akatsuki174
???ͷӡӦɹɹɹɹɹ
ɾDrag&Dropͱ ɾiOSʹ͓͚ΔDrag&Drop ɾDrag&Dropͷ͍Ͳ͜Ζ ɾDrag&Dropͷ׆༻ࣄྫ ɾiOS11·ͰͷDrag&Dropͷ࣮ ɾiOS11͔ΒͷDrag&Dropͷ࣮ ࠓ͢͜ͱ
ΞϓϦؒDrag&Dropʹؔͯؒ͠ʹ߹Θ ͳ͔ͬͨ&γϛϡϨʔλͰ͏·͘SplitView Λ࡞Εͳ͔ͬͨͷͰࠓճͳ͠Ͱ… ࠓ͢͜ͱ
Qiitaʹৄ͠ΊͷࢿྉΛ(ׂ͍͔ͭͯ͘͠ʁ) ্͛Α͏ͱࢥͬͯ·͢ɻ ͍ͭʹͳΔ͔Θ͔Γ·ͤΜ͕ͪΌΜͱ… ͪΌΜͱ… _(:3 ʯ㲃)_ŰƄŦŕ ޙ…
ɾiOSΤϯδχΞͷํ ɾiOSΞϓϦΛͳΜͱͳ͍ͬͨ͘͜͡ͱ͕ ɹ͋Δํ ɾiPhoneΛ͍࣋ͬͯΔํ ࠷ॳʹ֬ೝ
ը໘্ͷԾతͳମΛҠಈ͢ΔͨΊͷ άϥϑΟΧϧϢʔβΠϯλϑΣʔε্ͷ ૢ࡞ͷҰͭ by Wikipedia Drag&Dropͱ
ώϡʔϚϯΠϯλϑΣʔεΨΠυϥΠϯͰ ʮDrag&DropޮతɺײతͳػೳͰ ͋ΔͨΊɺγεςϜશମʹ࣮͞ΕΔ͜ͱ͕ ظ͞ΕΔʯ ͱॻ͔Ε͍ͯ·͢ Drag&Dropͱ
ɾΞϓϦorΞϓϦؒͰσʔλͷίϐʔɺ ɹҠಈ͕Ͱ͖Δ ɾυϩοϓ࣌ʹॳΊͯσʔλͷಡΈࠐΈ͕ ɹ࢝·Δ ɾෳͷσʔλܗࣜΛ࣋ͭ͜ͱ͕Ͱ͖Δ ɾυϩοϓઌͷΞϓϦΛ੍ݶ͢Δ͜ͱ͕ ɹͰ͖Δ iOSʹ͓͚ΔDrag&Drop
ɾࣸਅΞϓϦ͔ΒϝʔϧʹࣸਅΛషΓ͚ ɾWebϖʔδ্ͷࣸਅΛࣸਅΞϓϦʹอଘ ɾΧϨϯμʔ্ʹ͋ΔΠϕϯτΛϝʔϧ ɹΞϓϦʹషΓ͚ ɾςΩετΛผͷΞϓϦʹషΓ͚ etc… Drag&Dropͷ͍Ͳ͜Ζ
ϝϞா Drag&Dropͷ׆༻ࣄྫ
Amazon Drag&Dropͷ׆༻ࣄྫ
ଞʹ… ɾHomeը໘ ɾAppleͷϦϚΠϯμʔ / ΧϨϯμʔ ɾLifebearʢεέδϡʔϧΞϓϦʣ ɾMoneytreeʢՈܭʣ ɾCanvaʢը૾ฤूʣ etc… Drag&Dropͷ׆༻ࣄྫ
ࠓճհ͍ͯ͠ΔίʔυGitHubʹ ্͛ͯ·͢ https://github.com/akatsuki174/ DragAndDropSample ͔͜͜Β࣮ͷ
→UIPanGestureRecognizerΛ࣮ͬͯ iOS11·ͰͷDrag&Dropͷ࣮
iOS11·ͰͷDrag&Dropͷ࣮
iOS11·ͰͷDrag&Dropͷ࣮
iOS11·ͰͷDrag&Dropͷ࣮
→UIDragInteractionDelegateɺ ɹUIDropInteractionDelegateͳͲɺ ɹiOS11͔Βొͨ͠APIΛͬͯ ɹ࣮Ͱ͖Δ iOS11͔ΒͷDrag&Dropͷ࣮
iOS11͔ΒͷDrag࣮
iOS11͔ΒͷDrag࣮
iOS11͔ΒͷDrag࣮
iOS11͔ΒͷDrag࣮
iOS11͔ΒͷDrag࣮
iOS11͔ΒͷDrag࣮
iOS11͔ΒͷDrag࣮
iOS11͔ΒͷDrag࣮
iOS11͔ΒͷDrag࣮
iOS11͔ΒͷDrag࣮
iOS11͔ΒͷDrag࣮
iOS11͔ΒͷDrop࣮
iOS11͔ΒͷDrop࣮
iOS11͔ΒͷDrop࣮
iOS11͔ΒͷDrop࣮
ɾσʔλͷಡΈࠐΈυϩοϓ͞Ε͔ͯΒ ɹߦΘΕΔ ɾͦΕΏ͑ɺυϩοϓ͔ͯ͠Βը໘ʹө ɹ͞ΕΔ·Ͱ͕͔͔࣌ؒΔ͜ͱ͕͋Δ ɾͦͷ߹iOS͕উखʹΞϥʔτΛग़ͯ͠ ɹਐḿදࣔΛͯ͘͠ΕΔ iOS11͔ΒͷDrop࣮
iOS11͔ΒͷDrop࣮
ͦͷଞ UITableViewɺUICollectionViewʹ͓͚Δ D&Dศརʹͳ͍ͬͯΔͷͰ ௐͯΈΔͱྑ͍Ͱ͢ ̱
͓͢͢Ίॻ੶ ʰiOS 11 Programmingʱ ࠓճͷࢿྉୈ6ষ Drag and DropΛ ͓͓͍ʹࢀߟʹͯ͠࡞͍ͬͯ·͢
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ʣ