-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
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
When I use the barChart , my code crashed with exc_bad_access #79
Comments
so am i; when i use barchart ,it crashed. |
Same here. I traced the exc_bad_access error to the following line in NSString *labelText = _yLabelFormatter((float)_yValueMax * ( (_yLabelSum - index) / (float)_yLabelSum )); A quick fix is replace that with: NSString *labelText = @""; |
I Have the same problem. |
Same here. |
Same |
The Demo app uses the following code that seems to work: self.barChart.yLabelFormatter = ^(CGFloat yValue){
CGFloat yValueParsed = yValue;
NSString * labelText = [NSString stringWithFormat:@"%1.f",yValueParsed];
return labelText;
}; https://github.com/kevinzhow/PNChart/blob/master/PNChartDemo/PCChartsTableViewController.m#L103-132 |
i get the same error but if i change to this NSString *labelText = @""; the chart doesnt appear. Any suggestion ? |
+1, _yLabelFormatter not initialized |
It seems that the code: [barChart strokeChart] , was trying to release some memory that has already been releaseed.
I can't figure it, so I post it.
Have a nice day :-).
The text was updated successfully, but these errors were encountered: