简体   繁体   English

当图像向滚动视图的边缘移动时,如何使滚动视图滚动

[英]How to make scrollview scroll when image is moved towards edge of the scrollview

This could be pretty difficult to explain, but here we go, I'll try. 这可能很难解释,但是在这里,我将尝试。

I would like to do what other apps do when the user drags an image for example to the bottom of the screen and the page scrolls, or like on safari when the user is highlighting text and they drag one end of the selector to the bottom and the scrollview scrolls. 我想做其他应用程序的操作,例如,当用户将图像拖到屏幕底部并且页面滚动时,或者像在Safari中当用户突出显示文本并将选择器的一端拖到底部时, scrollview滚动。 I'd also like the scrolling to speed up as the image the user is dragging gets closer to the edge of the screen. 我还希望随着用户拖动的图像越来越靠近屏幕边缘而加快滚动速度。

So far I've only found questions similar to this for android but not for iPhone but feel free to direct me to one that I missed. 到目前为止,我只在Android上发现了与此类似的问题,但在iPhone上却没有发现,但可以直接将我引向我错过的问题。

Thanks 谢谢

I am not sure if this is what you are looking for. 我不确定这是否是您想要的。 Check this out http://www.informit.com/articles/article.aspx?p=1998968&seqNum=13 看看这个http://www.informit.com/articles/article.aspx?p=1998968&seqNum=13

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM