Reputation: 1939
When I touch a UIScrollView, I zoom the view to a large scale. But the view is not centered to the place where I have touched. I want to know how to make the view center when I touch it, can someone give me some example code.
Or if the scrollview have had the function?
Upvotes: 0
Views: 74
Reputation: 2022
Before zooming, set the scrollview's contentoffset so the point you touched to be in the center.
Upvotes: 1