View Single Post
ad407

 
Member Since: Apr 20, 2014
Posts: 4
ad407 is on a distinguished road

ad407 is offline
I have recently started to use Xcode and I am having some difficulties.

I have set up a swipe gesture to move an image depending on whether you swipe to the right or left. I want to create an IF statement which is dependent on the current x and y coordinates of this UIImageview. I want the image to move to a different place depending on where it is currently located.

I know how to move the image but just cant figure out how to do the IF statement!

Any help would be greatly appreciated! Thanks!
QUOTE Thanks