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

Set slide animation options #2

Open
Amanida opened this issue Jun 29, 2017 · 1 comment
Open

Set slide animation options #2

Amanida opened this issue Jun 29, 2017 · 1 comment

Comments

@Amanida
Copy link

Amanida commented Jun 29, 2017

Could you add a feature to set animation options?
I want to set UIViewAnimationOptionCurveEaseInOut option during animating.
I tried out with the below code, but It didn't work properly.

    [UIView animateWithDuration:.5
                          delay:0
                        options:UIViewAnimationCurveEaseInOut
                     animations:^{
                         [scrollView setContentOffset:offset animated:NO];
                     } completion:nil];

I think it cannot create a new view in the animation block.
It will be awesome if you implement this feature.
Thanks.

@zjmdp
Copy link
Owner

zjmdp commented Jun 30, 2017

@Amanida I tried the code above, and it worked well. Btw, UIViewAnimationCurveEaseInOut->UIViewAnimationOptionCurveEaseInOut

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

2 participants