Lets say i have two images (arrows)
[leftArrow setFrame:CGRectMake(4, 390, 40, 40)];
[rightArrow setFrame:CGRectMake(276, 390, 40, 40)];
and i want to change the scrollView
scrollRectToVisible:CGRectMake
to some other value. How to do this
the point of this is that i have a scroll view with images and when i slide with mu finger the next image comes but i also want to be able to do this when i press on the Arrow Image (they’re not buttons)
so basically change the visible scroll view value when pressing somewhere
To do this you have to use UIScrollView’s setContentOffset: function