@IBOutlet weak var pause: UIButton!
@IBAction func pausePlay() {
if isPaused {
startGraphUpDates()
isPaused = false
pause.setTitle("⏸", for: .normal)
} else {
stopGraphUpDates()
isPaused = true
pause.setTitle("▶️", for: .normal) // This is the statement that seems to cause the problem.
}
}
任何想法都会受到赞赏
我在Core Plot Realtime中遇到一个奇怪的问题。我有一个UIButton,它可以启动和停止用于更新绘图数据的计时器。我确实保留了以前的点的历史,并且仅显示最后的150 ...