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
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
410
App Clipについて
nivisunder7
1
72
Swift5.0 ABI安定化について
nivisunder7
0
380
SwiftUIの紹介
nivisunder7
0
36
Docker in Docker Tips
nivisunder7
0
58
iOS11のここが素晴らしい
nivisunder7
0
80
iPhoneX時代のレイアウト
nivisunder7
0
97
SpriteKitでゲーム開発
nivisunder7
0
110
Other Decks in Programming
See All in Programming
仕様漏れ実装漏れをなくすトレーサビリティAI基盤のご紹介
orgachem
PRO
5
1.7k
API Platformを活用したPHPによる本格的なWeb API開発 / api-platform-book-intro
ttskch
1
140
CSC307 Lecture 15
javiergs
PRO
0
260
コーディングルールの鮮度を保ちたい / keep-fresh-go-internal-conventions
handlename
0
210
Agent Skills Workshop - AIへの頼み方を仕組み化する
gotalab555
15
8.9k
Linux Kernelの1文字のミスで 権限昇格ができた話
rqda
0
1.4k
Go 1.26でのsliceのメモリアロケーション最適化 / Go 1.26 リリースパーティ #go126party
mazrean
1
410
ポーリング処理廃止によるイベント駆動アーキテクチャへの移行
seitarof
3
1.1k
AIコードレビューの導入・運用と AI駆動開発における「AI4QA」の取り組みについて
hagevvashi
0
500
OTP を自動で入力する裏技
megabitsenmzq
0
110
Rで始めるML・LLM活用入門
wakamatsu_takumu
0
190
AIに任せる範囲を安全に広げるためにやっていること
fukucheee
0
140
Featured
See All Featured
Applied NLP in the Age of Generative AI
inesmontani
PRO
4
2.2k
Stop Working from a Prison Cell
hatefulcrawdad
274
21k
Bridging the Design Gap: How Collaborative Modelling removes blockers to flow between stakeholders and teams @FastFlow conf
baasie
0
480
Taking LLMs out of the black box: A practical guide to human-in-the-loop distillation
inesmontani
PRO
3
2.1k
Build The Right Thing And Hit Your Dates
maggiecrowley
39
3.1k
Typedesign – Prime Four
hannesfritz
42
3k
The Illustrated Children's Guide to Kubernetes
chrisshort
51
52k
The SEO identity crisis: Don't let AI make you average
varn
0
420
Pawsitive SEO: Lessons from My Dog (and Many Mistakes) on Thriving as a Consultant in the Age of AI
davidcarrasco
0
88
brightonSEO & MeasureFest 2025 - Christian Goodrich - Winning strategies for Black Friday CRO & PPC
cargoodrich
3
120
Building the Perfect Custom Keyboard
takai
2
710
Redefining SEO in the New Era of Traffic Generation
szymonslowik
1
250
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पΓ ▸ σβΠφʔͱΑͦ͘͏ͳʂ