I have an UIImageView with an image (map) inside of a UIScrollView. I add another image (marker) to the image view (so a map background and a marker). If the marker isn't shown on the screen, when I place the marker I want to scroll to show the marker.
I'm using [scrollView scrollRectToVisible:rect animated:YES]
after I place the marker on the map. This works great when the scrollview isn't zoomed. How do I adjust rect
based on the zoom scale so the marker is centered in the view?