I have 5 UIImageViews
getting animated down the screen. If one is pressed, and it meets the requirements, it will add 1 to your score, using this:
The problem is this line:
[self.squareOne setCenter:position];
You are animating the position of squareOne
by setting its position. But meanwhile you also have constraints that also position squareOne
. That fact remains concealed until you change the text of the label; that triggers layout, and now the constraints all assert themselves, putting an end to everything else that was going on.
One solution is to animate the position of squareOne
by changing its constraints. Now when layout is triggered, the existing constraints will match the situation because they are the only force that is positioning things.