We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
if i write
let data = PieChartData() data.addDataSet(dataSet) let pFormatter = NumberFormatter() pFormatter.numberStyle = .percent pFormatter.maximumFractionDigits = 1 pFormatter.multiplier = 1.0 pFormatter.percentSymbol = " %" data.setValueFormatter(pFormatter )
i have an error Cannot convert value of type 'NumberFormatter' to expected argument type 'IValueFormatter?' Xcode offers
data.setValueFormatter(pFormatter as! IValueFormatter )
and now the program crash
The text was updated successfully, but these errors were encountered:
problem solved
data.setValueFormatter(DefaultValueFormatter(formatter : pFormatter ))
Sorry, something went wrong.
No branches or pull requests
if i write
i have an error
Cannot convert value of type 'NumberFormatter' to expected argument type 'IValueFormatter?'
Xcode offers
and now the program crash
The text was updated successfully, but these errors were encountered: