Created
January 17, 2015 12:56
-
-
Save syossan27/f8b9d445eb5352d13dda to your computer and use it in GitHub Desktop.
This file contains 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 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