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

If total is zero application crashes with CALayerInvalidGeometry #3

Open
Nikita2k opened this issue Aug 24, 2015 · 2 comments
Open

Comments

@Nikita2k
Copy link
Contributor

If total value is zero (in case there is not data yet) app crashes with message

Terminating app due to uncaught exception 'CALayerInvalidGeometry', reason: 'CALayer position contains NaN: [nan nan]'

Possible solution: ask delegate for UIView to show instead of Pie Chart or do something to prevent from dividing on zero

@cesarmtz93
Copy link

@Nikita2k Hi did you solved this?

@vijayender1991
Copy link

Hi did you solved this?

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

3 participants