title: Animation like cards app iphone
body: <p>I am trying to achieve the same effect like in cards app (<a href="http://www.youtube.com/watch?v=aWjX_qufmc0" rel="nofollow">http://www.youtube.com/watch?v=aWjX_qufmc0</a>) for opening the content inside (Horizontal greeting card opening type animation: <a href="https://store.marathonpress.com/image/cache/data/store_381/Previews/Press-Printed-Card-Folded-5x7-H-C-500x500.jpg" rel="nofollow">https://store.marathonpress.com/image/cache/data/store_381/Previews/Press-Printed-Card-Folded-5x7-H-C-500x500.jpg</a>). I have tried it using <code>CABasicAnimation</code> but no access, Can someone help me to achieve the same animation effect.</p>
  
  <p>I am trying like this:</p>
  
  <pre><code>- (void)loadInsideMessageView {
  
      [UIView transitionWithView:backgroundView
                        duration:1.0
                         options:UIViewAnimationOptionTransitionFlipFromBottom //any animation
                      animations:^ {
                          insideView.frame = CGRectMake(0, 40, 568, 280);
                          [backgroundView addSubview:insideView];
                      }
                      completion:nil];
  }
  </code></pre>
  
  <p>Thanks.</p>