title: Animate a UIView on a sine wave path
body: <p><a href="https://i.stack.imgur.com/zxfeC.gif" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zxfeC.gif" alt="enter image description here"></a></p>
  
  <p>How would you make a UIView move along a sine wave path? Ideally, I'd be able to stop the animation when the UIView goes off the screen and release it. I see that UIView->animateWithDuration can only animate on one property at a time, but this seems like two exclusive things are happening simultaneously: it's moving to the right and it's moving up/down.</p>