Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
import UIKit
import WatchKit
class DetailController: WKInterfaceController {
@IBOutlet weak var selectData: WKInterfaceLabel!
override init(context: AnyObject?) {
// Initialize variables here.
super.init(context: context)
// contextに渡ってきた値をLabelにセット
var detailStr = context as String!
self.selectData.setText(detailStr)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.