I have image in UIImageView and a grid over it. I want to zoom an area of the image on which small grid is there. Please help.
Obvious answer: put the UIImageView inside a UIScrollView
I want the image to be on Interface builder, is it possible with a scroll view???
Are you sure that can be done?Otherwise you might need to chop up your larger image at runtime.
Are you sure that can be done?
There is still an issue with putting them back together.
If they are zoomed in, the interpolation doesn't take pixels of adjacent tiles
into account, and you can see a seam.
Might not matter if you split the image exactly where the grid is.
Do a search in Xcode on PhotoScroller. It's a sample app that sounds like it does exactly what you want. It uses Core Animation tiled layers to display large images in tiles of 256x256 pixel tiles at several zoom levels, and smoothly handle zooming in and out, scrolling, etc. Very slick little app, and it runs seamlessly. (literally and figuratively.)