unos minutos con watchkit - icon
TRANSCRIPT
Rafa Barberá[email protected]@rbarbera
Unos minutos con Xcode y WatchKit
iPhone App
iPhone App
WatchKit extension
iPhone AppWatchKit extension
Watch app
iPhone AppWatchKit extension
Watch app
StoryboardsImages Code
iPhone AppWatchKit extension
Watch appStoryboards
Images
Code
WatchKitWatchKit
WatchKit UIKitWKInterfaceController UIViewController
WKUserNotificationInterfaceController UIApplicationDelegate + UIAlertControllerWKInterfaceDevice UIDeviceWKInterfaceObject UIViewWKInterfaceButton UIButton
WKInterfaceDate UILabel + NSDateFormatterWKInterfaceGroup UIScrollViewWKInterfaceImage UIImageViewWKInterfaceLabel UILabelWKInterfaceMap MKMapView
WKInterfaceSeparator UITableView.separatorColor / .separatorStyleWKInterfaceSlider UIStepper + UISlider
WKInterfaceSwitch UISwitchWKInterfaceTable UITableViewWKInterfaceTimer UILabel + NSDateFormatter + NSTimer
fuente: nshipster.com
Componentes
fuente: nshipster.com
Object Action MethodButton - (IBAction)doButtonActionSwitch - (IBAction)doSwitchAction:(BOOL)onSlider - (IBAction)doSliderAction:(float)valueTable - (IBAction)doTableRowTapAction:(NSInteger)rowIndexMenu Item - (IBAction)doMenuItemAction
Target/Action especializadas
• no frame, no bounds • no subviews • no constraints
WKInterfaceGroup
WKInterfaceObject WKInterfaceObject WKInterfaceObject
WKInterfaceObject WKInterfaceObject WKInterfaceObject
WKInterfaceObject WKInterfaceObject WKInterfaceObject
Watch App
WatchKit Extension
iPhone App
App Groups Sandbox
NSUserDefaults
sandbox sandbox
Demo
WatchDemo in GitHub
Apple Watch Human Interface Guidelines
WatchKit Programming Guide
WatchKit Framework Reference
Recursos