天道酬勤,学无止境

macaw

Value changed but the chart doesn't Swift

I'm using the Macaw framework for my charts. There's only one problem that if it the first time shows the "X" chart, it will always(until closing app) show the "X" chart. But the data is changing(I saw it in the debugger). Here is the snippet of my "DahlichViewController". class DahlichViewController: UIViewController { @IBOutlet private var chartView: MacawChartView! @IBOutlet weak var start: UIButton! override func viewDidLoad() { super.viewDidLoad() chartView.backgroundColor = .clear chartView.contentMode = .scaleAspectFit } @IBAction func startPressed(_ sender: UIButton) { chartView

2021-06-25 19:16:44    分类:问答    ios   swift   xcode   macaw