Upgrade to Pro — share decks privately, control downloads, hide ads and more …

20160622 watchOS 3を使ってみた

20160622 watchOS 3を使ってみた

関モバ #15 の資料です

Kei Ito

June 22, 2016
Tweet

More Decks by Kei Ito

Other Decks in Programming

Transcript

  1. WKInterfaceSKScene ෺ཧԋࢉͳͲ΋ར༻Մೳ WKInterfaceSKScene 4QSJUF,JU 4DFOF,JU J04 NBD04 UW04 4,7JFX 4$/7JFX

    XBUDI04 8,*OUFSGBDF4,4DFOF 8,*OUFSGBDF4$/4DFOF sceneInterface.presentScene(scene) sceneInterface.scene = scene
  2. { // WKInterfaceControllerͷproperty self.crownSequencer.delegate = self self.crownSequencer.focus() } func crownDidRotate(_

    crownSequencer: WKCrownSequencer?, rotationalDelta: Double) { // 1पͰ߹ܭ1.0 } 8,$SPXO4FRVFODFS w ཽ಄ͷಈ͖ΛऔಘͰ͖Δ w GPDVTSFTJHO'PDVTͰ؂ࢹ0/0''
  3. 6TFS/PUJpDBUJPO let content = UNMutableNotificationContent() content.title = "λΠτϧͰ͢" content.body =

    "ຊจͰ͢" content.sound = UNNotificationSound.default() let trigger = UNTimeIntervalNotificationTrigger(timeInterval: 10, repeats: false) let req = UNNotificationRequest(identifier: "test", content: content, trigger: trigger) let center = UNUserNotificationCenter.current() center.add(req) { (err) in } XBUDI୯ମͰϩʔΧϧ௨஌͕ൃߦͰ͖Δʂ