Skip to content

Crashing on [self.graph reset] calling #31

@BadriVK

Description

@BadriVK

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions