×
Copy
Open
Link
Embed
Share
Beginning
This slide
Copy link URL
Copy link URL
Copy iframe embed code
Copy iframe embed code
Copy javascript embed code
Copy javascript embed code
Share
Tweet
Share
Tweet
Slide 1
Slide 1 text
See#the#&me#on#your#wrist Jeroen&Leenarts
Slide 2
Slide 2 text
No content
Slide 3
Slide 3 text
Abstract For$a$long$)me,$people$were$only$able$to$see$the$)me$on$their$ (smart)phones”.$Apple$came$with$a$brilliant$inven)on$that$allows$us$ to$see$the$)me$on$our$wrist!$Or$perhaps$that’s$just$what$the$ youngest$genera)on$will$think$a$few$years$from$now. Of#course#the#new#Apple#Watch#does#allow#us#to#do#much#more# than#just#see#the#6me.#In#this#session#we#will#see#how#to#use# WatchKit,#how#to#integrate#it#with#exis6ng#apps,#create#Glances# and#Watch#specific#no6fica6ons.
Slide 4
Slide 4 text
No content
Slide 5
Slide 5 text
No content
Slide 6
Slide 6 text
Now$I$do$lots$of$crypto$stuff with%iOS
Slide 7
Slide 7 text
Designer(says: That%is%off%by%one%pixel.
Slide 8
Slide 8 text
CocoaHeads.nl
Slide 9
Slide 9 text
Topics'of'today • The%Apple%Watch • Developer%overview • Share%data%extension%&%containing%app • Q&A
Slide 10
Slide 10 text
The$Apple$Watch
Slide 11
Slide 11 text
3"days"from"now
Slide 12
Slide 12 text
One$of$the$biggest$surprises$for$ Apple$Watch$will$be$the$breadth$of$ what$it$will$do. —"Tim"Cook1 1"Tuesday"February"10,"2015"1"Goldman"Sachs"Technology"Conference
Slide 13
Slide 13 text
Apps Glances No#fica#ons
Slide 14
Slide 14 text
No content
Slide 15
Slide 15 text
Design'resources Available(on:(h-ps:/ /developer.apple.com/watchkit/ 9(Photoshop(templates 9(Sketch(templates 9(Fonts 9(Style(guides
Slide 16
Slide 16 text
Developer(overview
Slide 17
Slide 17 text
Developer(overview
Slide 18
Slide 18 text
Developer(overview
Slide 19
Slide 19 text
Developer(overview Apps
Slide 20
Slide 20 text
Apps • Complements+iOS+app • Paired+with+the+user’s+iPhone • One7on7one+rela8on
Slide 21
Slide 21 text
Apps • Supports)two)naviga0on)methods • Hierarchical)(tapping) • Page;based)(swiping)
Slide 22
Slide 22 text
Apps • Supports)two)naviga0on)methods • Hierarchical)(tapping) • Page8based)(swiping)
Slide 23
Slide 23 text
Apps • Supports)two)naviga0on)methods • Hierarchical)(tapping) • Page%based)(swiping)
Slide 24
Slide 24 text
Apps • Taps • Ver)cal,swipes,/,Horizontal,swipes,/,Le6,edge,swipes • Force,Touch • The,Digital,Crown
Slide 25
Slide 25 text
Developer(overview Glances
Slide 26
Slide 26 text
Glances • Browsable+collec-on+of+-mely+and+contextually+relevant+ moments. • Individually,+a+Glance+is+a+quick+view+of+your+app’s+most+ important+content. • Tapping+your+app’s+glance+interface+always+launches+the+app.
Slide 27
Slide 27 text
Glances • Template)based • Not/scrollable • Associated/with/a/single/ac8on • Op8onal
Slide 28
Slide 28 text
Developer(overview No#fica#ons
Slide 29
Slide 29 text
No#fica#ons • Enabled)by)default,)all)no0fica0ons)can) end)up)on)Watch • Types: • Quick)look • Sta0c)/)Dynamic
Slide 30
Slide 30 text
No#fica#ons
Slide 31
Slide 31 text
No#fica#ons • You%can%design%mul0ple%no0fica0ons%by%using%the%no0fica0on% "category" • Think%about%supplying%one%named%"default"
Slide 32
Slide 32 text
No#fica#ons
Slide 33
Slide 33 text
Developer(overview Available(components
Slide 34
Slide 34 text
Available(components
Slide 35
Slide 35 text
Available(components Groups '(Lay(out(items(horizontally(or(ver5cally '(One(or(more(other(interface(elements You$can$nest$these
Slide 36
Slide 36 text
Developer(overview Limita&ons
Slide 37
Slide 37 text
Limita&ons • Avoid'using'technologies'that'request'user'permission • Do'not'use'background'execu:on'modes • Avoid'performing'long
Slide 38
Slide 38 text
Limita&ons • Everything,is,done,within,a,Storyboard,file • Communica:on,over,bluetooth • Simulator,simulates,the,latency
Slide 39
Slide 39 text
Share&data&extension&&&containing& app
Slide 40
Slide 40 text
Share&data&extension&&&containing&app Documenta*on+is+very+terse+here+2>+224+words Create&a&shared&app&group .&Use&UserDefaults&for&preferences .&Write&files&to&share&bigger&chunks&of&data Example: objectivec self.sharedDefaults = [[NSUserDefaults alloc] initWithSuiteName:@"group.com.xebia.myapp.mywatch "];
Slide 41
Slide 41 text
Share&data&extension&&&containing&app Enter&technical¬e&TN2408 3&File&coordinators&and&shared&containers&is&a&no3no
Slide 42
Slide 42 text
Share&data&extension&&&containing&app Instead(use *(CFPreferences *(writeToFile:atomically:((Atomic(write) *(SQLite *(Core(Data In#no#way#is#your#data#guaranteed#to#be#stored#with#SQLite#and# Core#Data.
Slide 43
Slide 43 text
Share&data&extension&&&containing&app Think&about&wri.ng&data&though 1&SQLite&and&Core&Data&double&entries 1&Atomic&writes,&last&writer&wins Storing(in(the(cloud(works(very(well 4(Be(it(CloudKit(or(a(random(web(address
Slide 44
Slide 44 text
Share&data&extension&&&containing&app What%about openParentApplication:reply: application:handleWatchKitExtensionRequest:reply: ? Well $%Pre(y%slow $%Gets%even%slower%with%more%data $%But%very%useful,%it%wakes%up%the%containing%app
Slide 45
Slide 45 text
No content
Slide 46
Slide 46 text
Share&data&extension&&&containing&app So#how#to#make#this#easier? How$about$things$like$MMWormhole? 6$This$is$actually$pre;y$decent. 6$Uses$Darwin$no@fica@ons$(Apple$dev$confirms$this$is$ok)
Slide 47
Slide 47 text
Share&data&extension&&&containing&app As#simple#as [self.wormhole passMessageObject:@{@"buttonNumber" : @(1)} identifier:@"button"]; [self.wormhole listenForMessageWithIdentifier:@"button" listener:^(id messageObject) { self.numberLabel.text = [messageObject[@"buttonNumber"] stringValue]; }]; Internally)uses)Darwin)No1fica1ons)and)atomic)writes
Slide 48
Slide 48 text
Q&A
Slide 49
Slide 49 text
Links TN2408'('h*ps:/ /developer.apple.com/library/ios/technotes/ tn2408/_index.html Devforums'confirming'Darwin'noFficaFons'is'ok'('h*ps:/ / developer.apple.com/library/ios/technotes/tn2408/_index.html MMWormHole'('h*ps:/ /github.com/mutualmobile/MMWormhole Apple'Watch'Programming'Guide