title: UIView animation is not working as expected
body: <p>I have two <code>UIImageView</code> filling the view controller, the first is filling the top half, and the second for the bottom half. I set them directly in the storyboard file.</p>
  
  <p>In the <code>viewDidLoad</code> method, i am setting code in order to perform animation for the two <code>UIImageView</code>, so that it will look like a basket which gets opened (the first <code>UIImageView</code> moved to the top until it gets out of the view, and the second <code>UIImageView</code> moved to the bottom of the view until it gets out of the view).</p>
  
  <p>This is my code so far:</p>
  
  <pre><code>- (void)viewDidLoad
  {
      [super viewDidLoad];
      // Do any additional setup after loading the view, typically from a nib.
  
      CGRect basketTopFrame = self.basketTop.frame;
      basketTopFrame.origin.y = -basketTopFrame.size.height;
  
      CGRect basketBottomFrame = self.basketBottom.frame;
      basketBottomFrame.origin.y = self.view.bounds.size.height;
  
      [UIView beginAnimations:nil context:nil];
      [UIView setAnimationDuration:0.5];
      [UIView setAnimationDelay:1.0];
      [UIView setAnimationCurve:UIViewAnimationCurveEaseOut];
  
      self.basketTop.frame = basketTopFrame;
      self.basketBottom.frame = basketBottomFrame;
  
      [UIView commitAnimations];
  
  }
  </code></pre>
  
  <p>But the behavior is different than i was expecting, the top frame is not moving, and the bottom frame is animated from top left to bottom (origin position, and not moving out of the view).</p>
  
  <p>This is <code>UIImageViews</code> position as i set in the storyboard:
  <img src="https://i.stack.imgur.com/AMTfp.png" alt="enter image description here"></p>
  
  <p>This is the <code>UIImageViews</code> when i launch the app:</p>
  
  <p><img src="https://i.stack.imgur.com/BJSJa.png" alt="enter image description here"></p>
  
  <p>And this is the <code>UIImageViews</code> when the app finish the animation(<code>viewDidLoad</code>):
  <img src="https://i.stack.imgur.com/EtmLA.png" alt="enter image description here"></p>
  
  <p>Please note that this code works in Xcode 4.2, but since upgrading to Xcode 4.5 and using Storyboard, i begin getting this issue. Thanx in advance.</p>