title: iOS Calculation control points for bezier path curve animation given two points
body: <p>I'm trying to animate the movement of a view using CGPathAddCurveToPoint and generating a bezier path but I'm having trouble figuring out the control points between the origin and the destionation. Any of you knows how can I can calculate dynamically the control points given the origin and destionation of the UIView? </p>
  
  <p>For example (iPad), I'm trying to animate a bird (UIView) flying in from point (455,482) to (31,100). I would like to be a curve movement of bird flying instead of lineal movement. I'll really appreciate your help.</p>
  
  <p>thank you for answers but still wonder how can I calculate the control points.</p>