-
Notifications
You must be signed in to change notification settings - Fork 55
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
iOS8: Setting an EasingFunction in a View Segue changes the frame #16
Comments
I noticed similar issues with custom easing functions not working in my app on iOS8. The animation occurred way off of the frame of where it should be. I was able to fix my issue in easing_addAnimation(), by setting override.additive = basicAnimation.isAdditive. |
Oh good. In my easing_addAnimation method override doesn't have a property called additive. Are you able to give me a bit more information about how I should change the method to fix this problem? Do I need to change override to a CABasicAnimation? Where should I set the values? |
@almiki thanks a lot for the fix. |
Thanks so much. I'd buy you a beer if we weren't all on different sides of the planet. Not sure if I should close the issue since there's a fix - will leave that to you. |
If you set an easing function for an animation which runs in a segue, the coordinates of the start and end frames for the view change (or perhaps it just ignores the ones you set). Commenting out the easing function returns to the expected beginning and end points.
Here's an example animation block (inside a segue between two view controllers):
[UIView animateWithDuration:2.0
delay:delay
options:UIViewAnimationOptionCurveEaseOut
animations:^{
[view setEasingFunction:QuinticEaseInOut forKeyPath:@"frame"];
view.frame = CGRectMake(view.frame.origin.x,
view.frame.origin.y-1024,
view.frame.size.width,
view.frame.size.height);
//start view.frame=CGRectMake(view.frame.origin.x, view.frame.origin.y....)
Commenting out the [view setEasingFunction... line has an expected start and end point, uncommenting it sets it to a negative value, and ignores my start and end points.
Not sure if this is my problem or something in AHEasing - keen to help solve it but not sure where to begin!
UPDATE: It seems that any animation I set up in iOS 8 ignores the start and end points of the animation, not just those in segues. Surely I'm not the only one experiencing this?
The text was updated successfully, but these errors were encountered: