Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
はじめてのDrag&Drop
Search
akatsuki174
February 02, 2018
Programming
0
240
はじめてのDrag&Drop
2018/02/02(金) LT型勉強会『iOS』
https://supporterzcolab.com/event/269/
akatsuki174
February 02, 2018
Tweet
Share
More Decks by akatsuki174
See All by akatsuki174
最近読んでいる本-読書シェア会vol.1
akatsuki174
2
180
SwiftUI、UIKitでキャプチャを撮ろう!
akatsuki174
1
83
Appleにおけるプライバシーの全容を把握する
akatsuki174
0
5.6k
近年のAppleにおける位置情報とプライバシー
akatsuki174
3
450
オフライン勉強会ぼっち対策
akatsuki174
1
640
Xcode 15の新機能
akatsuki174
0
2.8k
AndroidにもSelect Photosがやってきた
akatsuki174
0
1.3k
Famm Android改善記
akatsuki174
0
380
Flutterアプリ開発にネイティブコードはどこまで求められるのか
akatsuki174
2
4.9k
Other Decks in Programming
See All in Programming
ts-morph実践:型を利用するcodemodのテクニック
ypresto
1
580
コード書くの好きな人向けAIコーディング活用tips #orestudy
77web
3
240
Effect の双対、Coeffect
yukikurage
4
560
AIエージェントによるテストフレームワーク Arbigent
takahirom
0
350
Step up the performance game with Spring Boot and Project Leyden
mhalbritter
0
170
GoのWebAssembly活用パターン紹介
syumai
2
970
インターフェース設計のコツとツボ
togishima
2
670
eBPFを用いたAIネットワーク監視システム論文の実装 / eBPF Japan Meetup #4
yuukit
3
710
OpenNext + Hono on Cloudflare でイマドキWeb開発スタックを実現する
rokuosan
0
110
推論された型の移植性エラーTS2742に挑む
teamlab
PRO
0
170
バランスを見極めよう!実装の意味を明示するための型定義 TSKaigi 2025 Day2 (5/24)
whatasoda
2
810
TypeScript LSP の今までとこれから
quramy
1
460
Featured
See All Featured
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
15
900
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
42
2.4k
Fashionably flexible responsive web design (full day workshop)
malarkey
407
66k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
48
5.4k
Documentation Writing (for coders)
carmenintech
71
4.8k
How STYLIGHT went responsive
nonsquared
100
5.6k
Raft: Consensus for Rubyists
vanstee
138
7k
Navigating Team Friction
lara
186
15k
Building Better People: How to give real-time feedback that sticks.
wjessup
368
19k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
29
9.5k
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
25
2.8k
A Tale of Four Properties
chriscoyier
159
23k
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ʣ