I haven't found a clear answer on this question. If it is a duplicate, send the question to me. Here is my problem...
I have a label resultPercentage
, and programmatically I have been able to change the label if it was a String()
. How can I do the same, except use an Int()
?
Here is some example code...
var resultLabel = 45
@IBOutlet var resultPercentage: [UILabel]!
override func viewDidLoad() {
super.viewDidLoad()
resultPercentage.text = resultLabel
}
I always get an error. Please help! Thanks in advance :)