I saw a function like this:
public func highlightValues(highs: [ChartHighlight]?) { // set the indices to highlight _indicesToHightlight = highs ?? [ChartHighlight](); // redraw the chart setNeedsDisplay(); }
What is the purpose ?? here? I searched, but it looks like a search ?? hard to find the right answer.
ios swift
Wingzero Jun 15 '15 at 3:51 on 2015-06-15 03:51
source share