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

作者你好 #8

Open
Wbqqqq opened this issue May 16, 2017 · 5 comments
Open

作者你好 #8

Wbqqqq opened this issue May 16, 2017 · 5 comments

Comments

@Wbqqqq
Copy link

Wbqqqq commented May 16, 2017

我有几个问题想咨询你一下, 如果我想在一个页面中加入两种pop动画和手势,我该如何操作,能否给点思路呢 不胜感谢!! 353351363 我的qq 如果方便的话 想和你私下讨论。感谢!。。

@wazrx
Copy link
Owner

wazrx commented May 16, 2017

@Wbqqqq 你自定义一个animator,并添加一个标识符,在pop动画的逻辑中根据标识符做两套动画就好了,不过两种手势的话就要看你具体的需求了,比如手势方向之类的,可能需要修改手势控制的部分代码逻辑

@Wbqqqq
Copy link
Author

Wbqqqq commented May 16, 2017

好的好的 跟我想的差不多 感谢你的代码 提供思路 最后,标识符的属性做到哪里比较好? 写在vc可以嘛

@wazrx
Copy link
Owner

wazrx commented May 16, 2017

标识符的属性当然是放在animator中啊

@Wbqqqq
Copy link
Author

Wbqqqq commented May 17, 2017

我在测试过程中发现, 手动滑动pop时, 一下滑很多 百分比会从0 直接跳到很高 然后一下子拉开很多 不能算很流畅,很丝滑。 我自己demo写个拖拉手势就很顺滑 , 不知道是不是手势问题吗 。

@Wbqqqq
Copy link
Author

Wbqqqq commented May 17, 2017

作者你好, https://github.com/PeteC/InteractiveViewControllerTransitions 这份demo 他在手势滑动过程中的操作更加优雅,希望对你有帮助 感谢

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