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
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
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
710
逆向き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
Jetpack Compose メカニズム
skydoves
0
470
AgentCore CLI で進化した AWS での AI エージェントの作り方 : 必要な機能を必要な時に
icoxfog417
PRO
3
370
Omarchy Tokyo やると聞いて UMPC 買ってセットアップしてきた
mtsmfm
0
160
Webの地図
yosuke_furukawa
PRO
6
4.7k
thread_parallel_with_free-threaded_Python_and_NumPy.pdf
riku_sakamoto
0
360
Snowflakeで業務アプリを作ろう。 Snowflakeのアプリ機能解説&実践ガイド
ayumu_yamaguchi
2
300
Vue Fes Japan 2026 タイムテーブル徹底解説
448jp
1
510
XP祭りでしか伝わらないフリップネタ #xpjug
murabayashi
0
150
スマートフォンでモールス信号を送受信する 〜スマートフォンのLEDとカメラで作る光通信の設計と実装〜
atsuki_seo
0
180
Security issues being discussed on Web Platforms
petamoriken
0
1.2k
『寄り添うラジオ』をAIで作る 体験価値から逆算した、会話しないUXと品質設計
theoriatec2024
3
190
Intent as Code
shoppingjaws
6
1.1k
Featured
See All Featured
The Curious Case for Waylosing
cassininazir
1
540
Abbi's Birthday
coloredviolet
4
10k
30 Presentation Tips
portentint
PRO
1
400
jQuery: Nuts, Bolts and Bling
dougneiner
66
8.6k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
12
1.3k
Why Your Marketing Sucks and What You Can Do About It - Sophie Logan
marketingsoph
0
410
Joys of Absence: A Defence of Solitary Play
codingconduct
1
530
A Modern Web Designer's Workflow
chriscoyier
699
190k
Code Review Best Practice
trishagee
74
20k
The Anti-SEO Checklist Checklist. Pubcon Cyber Week
ryanjones
0
250
Un-Boring Meetings
codingconduct
0
430
The Straight Up "How To Draw Better" Workshop
denniskardys
239
140k
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ʣ