The ballSize is related to Screen bound,
when i set bendDistance as benDistance * 1.8, the code works well on iPhone 6s but crashes on iPhone 5s, and then i set bendDistance as benDistance * 1.9 it crashes on iPhone 6s but works well on iPhone 5s.
What is the connection between Screen size and bendDistance on different devices?
There is my code :
The
ballSize
is related to Screen bound, when i setbendDistance
asbenDistance * 1.8
, the code works well on iPhone 6s but crashes on iPhone 5s, and then i setbendDistance
asbenDistance * 1.9
it crashes on iPhone 6s but works well on iPhone 5s.What is the connection between
Screen size
andbendDistance
on different devices?