Created
January 16, 2015 15:55
-
-
Save syossan27/eb9df763a79d3bf0925e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import WatchKit | |
import Foundation | |
class InterfaceController: WKInterfaceController { | |
@IBOutlet weak var countDownTimer: WKInterfaceTimer! | |
@IBOutlet weak var startButton: WKInterfaceButton! | |
override init(context: AnyObject?) { | |
// Initialize variables here. | |
super.init(context: context) | |
} | |
@IBAction func tapStartButton() { | |
self.countDownTimer.start() | |
self.countDownTimer.setDate(NSDate(timeIntervalSinceNow: 60.0 * 3.0)) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment