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
Invalid frame position when using demo view controller #1063
Comments
Ahoy @dvkch! Sorry I missed this until now. I can't find that code you mention at line 24 in any file of your sample project. Do you have a direct link? That said, I don't think you want to set a view controller's view frame to be equal to a keyframe animation object's frame, as the keyframe can and will change as the animation is played. Plus, the frame may not be set until the animation begins, which might explain this error you're seeing. Perhaps you meant to add the animation to a subview instead? |
@dvkch You are creating animations and references for two images ( |
Hehe indeed. Sorry for the trouble! |
Hi,
I am trying out your library and I am quickly facing a strange issue. The demo project runs fine on iOS6-7-8 and iPhone 4-5-6 (even after enabling iPhone 6 screen support), though if I use the exact same code in my own app it fails. Literally the same code, except for the added
#import <UIKit/UIKit.h>
in the view controller header.The exception is thrown at line 24 of the view controller class:
self.view.frame = animationFrame.frame;
with exceptionCALayer position contains NaN: [nan nan]
.Here is a link to the sample project: https://github.com/dvkch/JazzHandsBug1063 .
Thanks for taking time to look into this, Stan
The text was updated successfully, but these errors were encountered: