Question

Is there a specific way to know how many pixels a user moves a scrollview? I would dynamically resize a textview accordingly.

Thanks

Fran

Was it helpful?

Solution

Look at the UIScrollViewDelegate Protocol Reference. Specifically check the Responding to Scrolling and Dragging methods, from there you can check the contentOffset property of the scrollview which will give you the x and y offset from the origin.

EDIT: Added the proper name of the contentOffset property.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top