Autoplay in iOS

So I am new to autostart in iOS, so I ran into a problem.

My program has 2 images that can be dragged, pinched, enlarged and rotated. The user should be able to drag and drop images anywhere on the screen. So basically I don't want the constraints to keep my images in place. I need autorun to disconnect for only two images (and I know this is not possible).

So what happens now, when I run the program, the images can be dragged to anywhere on the screen, but when I rotate it or click to enlarge it, the image is moved from its current position and placed in the center of the screen, and there it will be enlarged or rotated ... (There are central constraints, and they have the lowest priority.) I also cannot remove the constraints.

Is there anyway I can avoid the limitations of only image views ??? If not, what might be the solution to my problem?

+3


source to share


2 answers


override -(void) layoutSubviews

inUIViewController



This should do the trick :)

0


source


Take a look at this question. It explains how to turn off automatic layout for a specific UIView at runtime.



Is it possible to disable autoplay for a specific subview at runtime?

0


source







All Articles