-4
Intの変数をUILabelに割り当てることはできませんが、これをどのように修正できますか?Intの変数をUILabelに割り当てることができません
輸入のUIKit
クラスのViewController:のUIViewController {
@IBOutlet var CoinCounterInt: UILabel!
@IBOutlet weak var CoinCounter: UILabel!
var coins = 0
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view, typically from a nib.
}
override func didReceiveMemoryWarning() {
super.didReceiveMemoryWarning()
// Dispose of any resources that can be recreated.
}
@IBAction func Clicker(sender: AnyObject) {
coins += 1
CoinCounterInt = "\(coins)"
}
}
@NilsGarlandあなたはあまり見なかったので、私は推測する。 –