Skip to content

Instantly share code, notes, and snippets.

@syossan27
Created January 17, 2015 12:56
Show Gist options
  • Save syossan27/f8b9d445eb5352d13dda to your computer and use it in GitHub Desktop.
Save syossan27/f8b9d445eb5352d13dda to your computer and use it in GitHub Desktop.
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