I have UIScrollView with label. I am getting touch events coordinates. When user is clicking on screen i am storing the click coordinates in variable, then i want to scroll the view (using something like [myScrollView setContentOffset]) in such a way so the y coordinate of the clicked point will become a center of my view, so when you clicking on some text it will autoscroll to the center of the screen. I am not sure how to workout the math of this…
Any help highly appreciated!
Should work.