Value of type 'ViewController' does not conform to 'ChartViewDelegate' in assignment

时间:2017-11-13 06:41:46

标签: ios swift charts

I'm using charts api, and getting this error

Value of type 'ViewController' does not conform to 'ChartViewDelegate' in assignment

class RiseAndFallViewController: UIViewController,ChartViewDelegate {
    func chartValueSelected(chartView: ChartViewBase, entry: ChartDataEntry, dataSetIndex: Int, highlight: Highlight) {
        print("")
    }

    @IBOutlet weak var RiseAndFall: HorizontalBarChartView!
    override func viewDidLoad() {
        RiseAndFall.delegate = self
    }
}

this is my code, and I'm getting above error, could you help me?

0 个答案:

没有答案