func timerRuns(addTimeValue: Int = 1) {
if let timeLabelInt = Int(timeLabel.text!) {
if timeLabelInt + addTimeValue > 0 {
timeLabel.text = String(timeLabelInt + addTimeValue)
}
}
}
当我调试此函数时,我没有向参数发送值,它等于106102873578432 ..任何想法?谢谢!
(我从Timer.scheduledTimer方法调用此函数)