zooming in on image, showing more details
Question
I am working on a little project and want to implement some sort of "google maps" zooming. What I mean with that is that I want to show an image, and let the user be able to zoom in into a bit of the picture.
The first image should show an overall view of an airport, with its terminals and gates ect. But when zooming in on a terminal it should show more details on where bus stops, taxi stops, info, café's ect are located. It should NOT be a map.
I have searched Google a bit, but couldn't really find anything. Anyone who has any suggestions? Preferable links to tutorials for similar things?
Best regards,
Paul Peelen
Solution
The standard way to implement this is by using a UIScrollView
and within the UIScrollView
add a custom UIView
with CATiledLayer
layers. You will render the image by drawing (setting content) to the inner CATiledLayer
layers. Look at the PhotoScroller sample project.