GraphKit
GraphKit copied to clipboard
Crashing on [self.graph reset] calling
I have to draw day, week, month and year graph in segmented view and when I try to change the segment tab just need to reset the graph lines and redraw graph but when I call [self.graph reset] in viewwillappear and call [self.graph draw] its crashing the app in _removeTitleLabels method.
-
(void)_removeTitleLabels {
if (self.titleLabels.count > 0) { [self.titleLabels mk_each:^(id item) { [item removeFromSuperview]; }]; } self.titleLabels = nil; } -[_UILabelLayer convertPoint:fromLayer:]: message sent to deallocated instance Please help I'm using https://github.com/ermalkaleci/CarbonKit for plot graph for, today, week, month and year, when switch between the tabs I call draw method everytime but it still crash at some points