I am trying to achieve the same effect like in cards app (http://www.youtube.com/watch?v=aWjX_qufmc0) for opening the content inside (Horizontal greeting card opening type animation: https://store.marathonpress.com/image/cache/data/store_381/Previews/Press-Printed-Card-Folded-5x7-H-C-500x500.jpg). I have tried it using CABasicAnimation
but no access, Can someone help me to achieve the same animation effect.
I am trying like this:
- (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];
}
Thanks.
For create necessary animation you can use Core Animation Function.
Create new
Single View Application
project and insert the code below inViewController.m
for see how it works.