Making a slide up view similar to the new Google Maps iOS app, troubles with multiple UIPanGestureRecognizer

耗尽温柔 提交于 2019-12-02 20:55:54
Blackcode

OK, I figured it out!

I used examples from UIPanGestureRecognizer - Only vertical or horizontal to limit my pan to up and down to vertical scrolling and made turn it to state failed when panned horizontally.

I also used : Restricting UIPanGestureRecognizer movement to block the view from panning to far up or down.

Finally I reversed the requiresToFail to :

[_slideUpScrollView.panGestureRecognizer requireGestureRecognizerToFail:_panGestureRecognizer];

And there it works!

Let me know if you have questions or have improvements to propose!

Thanks!

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!