-4
@IBOutlet var highScore: UILabel!
override func viewDidLoad() {
super.viewDidLoad()
highScore.text = mhighScoreNum
}
@IBOutlet var highScore: UILabel!
override func viewDidLoad() {
super.viewDidLoad()
highScore.text = mhighScoreNum
}
それは次のようになります。基本的なものの
highScore.text = "\(mhighScoreNum)"
を!
'Int'を' String'に変換する必要があります – Hamish
'highScore.text =" \(mhighScoreNum) "' – ozgur