Skip to content

Instantly share code, notes, and snippets.

@litoarias
Last active June 14, 2018 14:30
Show Gist options
  • Save litoarias/b5392b5a5c839a8a805515a7279145d4 to your computer and use it in GitHub Desktop.
Save litoarias/b5392b5a5c839a8a805515a7279145d4 to your computer and use it in GitHub Desktop.
Watch Tutorial - 1
import WatchKit
import Foundation
class InterfaceController: WKInterfaceController {
@IBOutlet weak var table: WKInterfaceTable!
@IBAction func sendMessage() {
}
override func awake(withContext context: Any?) {
super.awake(withContext: context)
// Configure interface objects here.
}
override func willActivate() {
// This method is called when watch view controller is about to be visible to user
super.willActivate()
}
override func didDeactivate() {
// This method is called when watch view controller is no longer visible
super.didDeactivate()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment