in my app i have UIImageView inside UIScrollview which i can zoom in and out with no problem.
The user is able to add UIViews on that image by Touch events.
now on dragging the image there is no problem.. the UIViews stays in the right position (x,y).
but when zooming the image the UIViews “floating” on the screen and without saving their proportions.
can someone help me please (code will be great) how can i save the UIViews positions on zooming?
I added a short movie to demonstrate the problem.
Thank you
The simplest thing would be to have a container
UIViewthat you put theUIImageViewand the placableUIViews inside and then return the containerUIViewforiOS then does all the work for you!