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
Watch Kitのはまりどころ
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
t.goda
March 29, 2019
Programming
0
57
Watch Kitのはまりどころ
t.goda
March 29, 2019
Tweet
Share
More Decks by t.goda
See All by t.goda
Distribute Binary Framework with Swift Package Manager
nivisunder7
0
130
XCTestでAPIのテストコードを書く
nivisunder7
0
400
App Clipについて
nivisunder7
1
71
Swift5.0 ABI安定化について
nivisunder7
0
370
SwiftUIの紹介
nivisunder7
0
36
Docker in Docker Tips
nivisunder7
0
58
iOS11のここが素晴らしい
nivisunder7
0
80
iPhoneX時代のレイアウト
nivisunder7
0
96
SpriteKitでゲーム開発
nivisunder7
0
110
Other Decks in Programming
See All in Programming
Best-Practices-for-Cortex-Analyst-and-AI-Agent
ryotaroikeda
1
110
AIフル活用時代だからこそ学んでおきたい働き方の心得
shinoyu
0
140
高速開発のためのコード整理術
sutetotanuki
1
400
AI時代の認知負荷との向き合い方
optfit
0
160
16年目のピクシブ百科事典を支える最新の技術基盤 / The Modern Tech Stack Powering Pixiv Encyclopedia in its 16th Year
ahuglajbclajep
5
1k
「ブロックテーマでは再現できない」は本当か?
inc2734
0
1k
humanlayerのブログから学ぶ、良いCLAUDE.mdの書き方
tsukamoto1783
0
200
AI Schema Enrichment for your Oracle AI Database
thatjeffsmith
0
290
Oxlint JS plugins
kazupon
1
960
CSC307 Lecture 04
javiergs
PRO
0
660
CSC307 Lecture 01
javiergs
PRO
0
690
AI Agent の開発と運用を支える Durable Execution #AgentsInProd
izumin5210
7
2.3k
Featured
See All Featured
The Organizational Zoo: Understanding Human Behavior Agility Through Metaphoric Constructive Conversations (based on the works of Arthur Shelley, Ph.D)
kimpetersen
PRO
0
240
Imperfection Machines: The Place of Print at Facebook
scottboms
269
14k
jQuery: Nuts, Bolts and Bling
dougneiner
65
8.4k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
141
34k
Optimising Largest Contentful Paint
csswizardry
37
3.6k
Efficient Content Optimization with Google Search Console & Apps Script
katarinadahlin
PRO
1
320
We Are The Robots
honzajavorek
0
160
The MySQL Ecosystem @ GitHub 2015
samlambert
251
13k
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
659
61k
VelocityConf: Rendering Performance Case Studies
addyosmani
333
24k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
234
17k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
25
1.7k
Transcript
APPLE WATCH ·ΓͲ͜Ζ 2019/03/29
APPLE WATCH ΞϓϦΛ࣮͢Δʹ͋ͨͬͯ ▸ ར༻͢ΔFramework͕ҟͳΔ ▸ WatchKit ͱ UIKit ▸
ex. UIViewController͕͑ͳ͍ʂʂ ▸ Ұ෦iOSͷUIͷϊϋ͕͑ͳ͍…… ▸ ѹతʹUIΤϨϝϯτ͕গͳ͍
WATCH KITͱ UIKITͷࠩҟ ಛʹڻ͍ͨͷ ▸ WKInterfaceControllerͱUIViewController ▸ WKInterfaceController: WatchKit ▸
ΠχγϟϥΠβʹcontext͕͋Δ ▸ SubviewΛͬͨ֊ߏͷ͋Δͳ͠ ▸ ͦͦUIViewͱ͍͏֓೦͕ͳ͍ ▸ ࣅͨΑ͏ͳͷͰWKInterfaceGroup͕͋Δ ▸ ΫϥεઃܭతʹWKInterfaceObjectͷ͕͍͔ۙ
UIͷϨΠΞτ࡞ͷࠩҟ ▸ iOSͷڧΈͰ͋ΔAutoLayoutʹΑΔ੍͕ར༻Ͱ͖ͳ͍ ▸ GroupʹΑΔΫϥελϦϯάͰϨΠΞτΛ࡞͢Δ WKInterface Controller Group Group Group
UIView Controller UIView UIView UIView UIView
UI·ΓͲ͜Ζ 1 ▸ ը໘αΠζͽͬͨΓͰഎܠը૾Λ࡞Δͱը໘͕εΫϩʔϧ͢Δ ▸ series4ؙ֯ͷը໘ͷͨΊ ▸ Ͳ͏ͯ͠ը໘αΠζͽͬͨΓͰ࡞Γ͍͚ͨͲεΫϩʔϧ͞ ͤͨ͘ͳ͍ͳΒFixedScreenEdgeϓϩύςΟʹνΣοΫΛೖ ΕΔ(StoryboardͰͷΈࢦఆՄೳ)
ςΩετ UI·ΓͲ͜Ζ 2 ▸ ը૾ͷαΠζࢦఆ͕WatchͷαΠζ͝ͱʹҧͬͯࢦఆ͞Εͯ Δʂʂʂ ▸ ex. 38mmͰ16*16Ͱ44Ͱ18*18 etc…
▸ ͭΒ͍(ෆՄೳͰͳ͍)
TABLE࡞ ▸ UITableView ▸ UITableViewCellΫϥεͰCellΛ࡞ ▸ xibϑΝΠϧͰΧελϜΫϥεΛ൚༻తʹ࡞Մೳ ▸ WKInterfaceTable ▸
NSObjectΛܧঝͨ͠RowΫϥεΛ࡞(cellͱ͍͏֓೦ͳ͍) ▸ xibϑΝΠϧͰΧελϜΫϥεΛ൚༻తʹ࡞ෆՄ https://github.com/facebookarchive/IGInterfaceDataTable
IPHONEͱͷ௨৴ ▸ جຊతʹWCSessionΛར༻ ▸ AppGroups᠘ ▸ iPhoneଆͰWCSessionͷίʔυΛॻ͘ඞཁ͋Γ ▸ iPhoneʹଓ͞Ε͍ͯΔ͔ ▸
௨৴தͷActivityIndicatorࣗલͰ࡞Δඞཁ͕͋Δ ▸ Appleᐌ͘ʮInteractions with your app should be quick. A responsive app provides a complication and keeps its snapshot up-to-date. It minimizes the time it takes to launch and load new screens. ʯ
PUSH௨ ▸ iPhone͕ى͖͍ͯΔঢ়ଶͩͱWatchଆʹ௨͕ಧ͔ͳ͍ ௨λΠϓ ૹΓݩ ಧ͘ઌ ϩʔΧϧ iOS app iPhone͕ϩοΫ͞Ε͍ͯΕ
Watchʹɺͦ͏Ͱͳ͚Ε iPhoneʹಧ͘ ϩʔΧϧ WatchKit Extension (Watch app) Apple Watchʹ͔͠ಧ͔ͳ͍ ϦϞʔτ αʔό iPhone͕ϩοΫ͞Ε͍ͯΕ Watchʹɺͦ͏Ͱͳ͚Ε iPhoneʹಧ͘ αΠϨϯτ αʔό iPhoneʹ͔͠ಧ͔ͳ͍
ͦͷଞ ▸ ΧελϜViewͷ͍ճ͕͠Ͱ͖ͳ͍…… ▸ xibϑΝΠϧΛ࡞Ͱ͖ͳ͍ ▸ ActivityIndicatorͱ͔Λը໘͝ͱʹ࡞Δඞཁ͕͋Δ ▸ ͦͦใ͕গͳ͍ ▸
Qiitaͱ͔ʹهࣄ͕গͳ͍ ▸ ͋ͬͯใ͕ݹ͍
·ͱΊ ▸ iOSΞϓϦͰ׳ΕͯΔ͔Β·͊େৎΖʙʢųŽ ▸ ࢮʹ·͢ ▸ ݴޠͱIDE͕ڞ௨ͯ͠Δ͚ͩͷผ ▸ ͑Δϊϋ ▸
વ͕ͩSwiftͰͰ͖Δ͜ͱڞ௨ ▸ ͑ͳ͍ϊϋ ▸ UIपΓ ▸ σβΠφʔͱΑͦ͘͏ͳʂ