Right guys, seeing as you were so helpful last time with my previous question with regards to using the UIPinchGestureRecognizer, and adding it programmatically. Which of course worked.
My next question is within the same realms…
I have added limitations to my pinch gesture, so that the user can only zoom in and out as much as I have defined within my variables.
But, I am now stuck. I have a navigation bar and item at the top of my view, but when the user zooms in, this is covered by the scaled image.(Until they zoom out) Is there a way to define the nav bar as “always on top”???
In the function where you declare your pinch gesture and add it to your scrollview, add this code:
This will ensure that the content of the scroll view doesn’t get out of it.
-EDIT- I edited my response to address the problem. I was missing some parts before 🙂