Skip to content
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

Crashing on [self.graph reset] calling #31

Open
BadriVK opened this issue Nov 19, 2017 · 0 comments
Open

Crashing on [self.graph reset] calling #31

BadriVK opened this issue Nov 19, 2017 · 0 comments

Comments

@BadriVK
Copy link

BadriVK commented Nov 19, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant