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
iOS 14のピッカーあれこれ
Search
akatsuki174
July 01, 2020
Programming
1.7k
4
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
iOS 14のピッカーあれこれ
CA.swift #12 WWDC20報告会
NDAの関係で中身がすかすかのスライド
akatsuki174
July 01, 2020
More Decks by akatsuki174
See All by akatsuki174
逆向きUIの世界 〜iOSアプリのRTL言語対応〜
akatsuki174
1
750
逆向きUIの世界〜AndroidアプリのRTL言語対応〜
akatsuki174
1
1.3k
私が変えてきたこと、変えなかったこと
akatsuki174
2
1.1k
最近読んでいる本-読書シェア会vol.1
akatsuki174
2
310
SwiftUI、UIKitでキャプチャを撮ろう!
akatsuki174
1
170
Appleにおけるプライバシーの全容を把握する
akatsuki174
0
6.4k
近年のAppleにおける位置情報とプライバシー
akatsuki174
3
540
オフライン勉強会ぼっち対策
akatsuki174
1
760
Xcode 15の新機能
akatsuki174
0
3k
Other Decks in Programming
See All in Programming
Kotlinの15年とServer-Side Kotlin
n_takehata
1
200
Kawaiicon: Kubernetes, it's no longer cool, but let's secure it anyway!
barnbarn
0
100
graphql-ruby を Spinel で速くしようとした話
mtsmfm
0
140
まずはコードより業務と向き合う:テーブル解体のためにPdMを呼んだ話
sakawe_ee
0
150
現場と育てるRailsモデリング 〜Spreadsheetから始めたモデル設計〜
siroemk
2
1.2k
느린 네트워크와 저사양 디바이스 사용자를 위한 웹뷰 로딩 시간 개선기
kmkim
1
190
Groovy as a human and AI friendly programming language
paulk
0
180
自作Discord音声botをLambda MicroVMsに移行した話 / Migrating My Discord Voice Bot to Lambda MicroVMs
akihisaikeda
1
290
Distance field of Julia set
kinakomoti321
0
150
Zero-Tap Sign-In対応、結局何をすればいいの?
mitohato14
0
1.5k
當我們開始不讀 Code - AI Agent 時代,Code Review 與 Clean Code 還剩下什麼?
jame2408
1
360
Kotlinize Is Not Just Converting to Kotlin
chigichan24
1
220
Featured
See All Featured
jQuery: Nuts, Bolts and Bling
dougneiner
66
8.7k
Large-scale JavaScript Application Architecture
addyosmani
516
110k
Visualization
eitanlees
153
17k
Bootstrapping a Software Product
garrettdimon
PRO
306
120k
Odyssey Design
rkendrick25
PRO
2
920
Navigating Algorithm Shifts & AI Overviews - #SMXNext
aleyda
1
1.7k
Sam Torres - BigQuery for SEOs
techseoconnect
PRO
0
610
End of SEO as We Know It (SMX Advanced Version)
ipullrank
3
4.5k
The innovator’s Mindset - Leading Through an Era of Exponential Change - McGill University 2025
jdejongh
PRO
1
390
[RailsConf 2023] Rails as a piece of cake
palkan
59
7.1k
How to train your dragon (web standard)
notwaldorf
96
6.9k
How People are Using Generative and Agentic AI to Supercharge Their Products, Projects, Services and Value Streams Today
helenjbeal
2
390
Transcript
iOS 14ͷϐοΧʔ͋Ε͜Ε CA.swift #12 WWDC20ใࠂձ @akatsuki174
ࣗݾհ
• ਢ౻ຘʢ@akatsuki174ʣ • iOS→AndroidΤϯδχΞ • גࣜձࣾTimersॴଐ • Ұ൪Θ͘Θͨ͘͠ػೳɿWidget
ΞΠεϒϨΠΫ 5
ࠓͷ
࣍ • [New] ColorPicker • [Update] DatePicker
͜ͷࢿྉͷݩʹͳͬͨಈը • Design with iOS pickers, menus and actions •
https://developer.apple.com/videos/play/ wwdc2020/10205
ࠓͷࢿྉ
ࠓͷࢿྉ • NDAతʹΊͳͱ͜ΖΛൈ͔ͯ͠Ξοϓࡁ • TwitterͰྲྀͯ͠·͢ • ΘΓͱ͚ܽͯ͠·ͬͨ… • ϑϧver΄͍͠ਓ͍ͨΒ࿈བྷ͍ͩ͘͞
ColorPicker
ColorPickerͱ • ͦͷ໊ͷ௨Γ৭ΛબΔϐοΧʔ • άϦουɺεϖΫτϧɺεϥΠμʔͳͲΛɹ ͬͯ৭ΛબͰ͖Δ
None
ColorPickerͷ͍͢͝ͱ͜Ζ̍ • ৭อଘͯ͠ผΞϓϦͰ͏͜ͱ͕Ͱ͖Δ
</%"> ৭Λอଘͯ͠Δ༷ࢠΛөͨ͠ಈը
ColorPickerͷ͍͢͝ͱ͜Ζ̎ • εϙΠτπʔϧΛͬͯ৭ΛऔಘͰ͖Δ
</%"> εϙΠτπʔϧΛͬͯΔ༷ࢠΛөͨ͠ಈը
࣮ࡍʹݟͯΈΑ͏ Ϙλϯλοϓ →ColorPickerදࣔ →৭બ →ࢦఆͨ͠ViewͷbackgroundColorΛมߋ
</%"> ΧϥʔϐοΧʔΛಈ͔͍ͯ͠Δ༷ࢠ
</%"ʁ> ࣗͰ࡞ͬͨσϞΞϓϦͷ࣮ίʔυ
selectedColor • બதͷ৭Λද͢ • getter, setter͕͋Δ • setterϐοΧʔىಈ࣌ʹࢦఆ͢ΔͳͲͷ༻్ʁ
supportsAlpha • AlphaεϥΠμʔΛ༻ҙ͢Δ͔Ͳ͏͔
TVQQPSUT"MQIBGBMTF TVQQPSUT"MQIBUSVF </%"ʁ> "MQIBεϥΠμʔͷ༗ແ͕Θ͔ΔεΫγϣ
colorPickerViewController DidSelectColor • ϐοΧʔ্Ͱ৭Λબͨ͠ͱ͖ʹݺΕΔ
colorPickerViewController DidFinish • ϐοΧʔΛดͨ࣌͡ʢӈ্ͷXΛλοϓͨ࣌͠ʣ ʹݺΕΔ
DatePicker
Կ͕৽͘͠ͳͬͨͷ͔ • ίϯύΫτϞʔυɺΠϯϥΠϯϞʔυͰදࣔɹ Ͱ͖ΔΑ͏ʹͳͬͨ • ਖ਼֬ʹɺ.compactiOS 13.4Ҏ߱ • ࣌ؒΩʔϘʔυͰೖྗՄೳ
શछྨ
.compactදࣔ • UIButtonͷΑ͏ͳදࣔΛλοϓͯ͠ɹ ϐοΧʔΛىಈ • ࣌ࠁɺΛϞʔμϧͰબͰ͖Δ • UIͷεϖʔε͕ݶΒΕ͍ͯΔͱ͖ʹศར
</%"> DPNQBDUදࣔ͞ΕͨQJDLFSΛ ಈ͔͍ͯ͠Δ༷ࢠΛөͨ͠ಈը
.inlineදࣔ • ϐοΧʔ͕ͦͷ··ຒΊࠐ·Ε͍ͯΔ • ϞʔμϧΛग़͢ख͕ؒল͚Δ • iPadͳͲεϖʔε͕͍߹ʹ༗ޮ
</%"> JOMJOFදࣔ͞ΕͨQJDLFSͷεΫγϣ
Կ͔ରԠඞཁʁ • UIDatePickerͷAPI·ͬͨ͘ಉ͡·· • iOS 13 SDKͰϏϧυͯ͠ΔݶΓେৎͦ͏ • iOS 14
SDKͰϏϧυͨ͠Β preferredDatePickerStyleʹ.automatic͕ઃఆ ͞Εͯಈ͖͕มΘΔ…ʁ
J04BVUPNBUJD J04BVUPNBUJD </%"> BVUPNBUJDͷ༷ࢠͷҧ͍
ࠓ·Ͱ௨Γʹ͍ͨ͠ͳΒ • preferredDatePickerStyleΛ.wheelsʹ͢Ε ྑͦ͞͏
࣮ࡍʹݟͯΈΑ͏ compact date pickerΛλοϓ →બʢdate, time, dateAndTimeʣ →ܾఆ
</%"> ֤λΠϓͷEBUFQJDLFSΛಈ͔͍ͯ͠Δ༷ࢠΛ өͨ͠ಈը
</%"> 4UPSZCPBSEͷ༷ࢠ
·ͱΊ
·ͱΊ • ColorPicker༷ʑͳ؍͔Β৭ΛબͰ͖Δ • ৽͍͠DatePickerΑΓࣗવͳUIʢओ؍ʣͰɹ ΛબͰ͖Δ
ຊޠࢿྉ
ݟͯͶ • iOS 14ͰมΘΔϐοΧʔͱɺ৽͘͠ొͨ͠ɹ ΧϥʔϐοΧʔ • https://qiita.com/akatsuki174/items/ 56fc648f513d3e92387f 5
એ
iOSDCνέοτൃചதʂʂ • ࠓΦϯϥΠϯ։࠵ • ࠓͳΒΞʔϦʔόʔυ2,000ԁʢ͍҆ʂʣ • ϊϕϧςΟ༣ૹ • ύϯϑϨοτʹԠื͕͋ͬͨݪߘΛܝࡌ •
9/19() ʙ 9/21(݄ॕ)ɺͥͻ͝ࢀՃΛʂ 5
• αʔόʔαΠυΤϯδχΞ (PHP, Golang, AWS) • AndroidΤϯδχΞ (Kotlin) • iOSΤϯδχΞ
(Swift) TimersͰݱࡏΤϯδχΞશ৬छ࠾༻தʂ ৄ͘͠”Timers”Ͱݕࡧ 5
͝ਗ਼ௌ ͋Γ͕ͱ͏͍͟͝·ͨ͠ʂ