Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CALayer position contains NaN: [nan 15]

My iphone app crashes showing error

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

What does this mean ?

like image 603
A_Curious_developer Avatar asked Sep 30 '22 08:09

A_Curious_developer


1 Answers

"CALayer position contains NaN: [nan 15]" indicates that you have a division by zero somewhere. NSLog() will help you isolate it. If you posted the stack log, more help would have been available.

like image 137
Sizemore Avatar answered Oct 05 '22 06:10

Sizemore