Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
macOS & iOS Developer Playground
iOS Development
Coordinate Dependent If Statements
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="ad407" data-source="post: 1579071" data-attributes="member: 324813"><p>I have recently started to use Xcode and I am having some difficulties.</p><p></p><p>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.</p><p></p><p>I know how to move the image but just cant figure out how to do the IF statement!</p><p></p><p>Any help would be greatly appreciated! Thanks!</p></blockquote><p></p>
[QUOTE="ad407, post: 1579071, member: 324813"] 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]
Verification
Post reply
Forums
macOS & iOS Developer Playground
iOS Development
Coordinate Dependent If Statements
Top