0

I am developing an app in which I have to open a card like this video.

http://www.youtube.com/watch?v=srnRuhFvYl0&feature=youtu.be

Can some one suggest me any library or any way by which I can make this type of animation between 2 uiviews

Shivomkara Chaturvedi
  • 1,697
  • 7
  • 28
  • 42
  • 1
    See also [iPhone card like flipping animation](http://stackoverflow.com/questions/9984804/iphone-card-like-flipping-animation) – Brad Larson Apr 22 '13 at 17:21

4 Answers4

1

try this demo for your effects.

MPFlipViewController

SAMIR RATHOD
  • 3,512
  • 1
  • 20
  • 45
0

here you can implement logic with bellow animation..

[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration:1.0];
[UIView setAnimationTransition:UIViewAnimationTransitionCurlUp forView:yourView2 cache:YES];// Here i set UIView2
[yourView1 removeFromSuperview];// And here i remove UIView1
[UIView commitAnimations];

Here also you can use UIViewAnimationTransitionCurlDown instead of UIViewAnimationTransitionCurlUp

Also see this Demo.. leaves-developers

Paras Joshi
  • 20,427
  • 11
  • 57
  • 70
  • [`+[UIView beginAnimations:context:]`](http://developer.apple.com/library/ios/documentation/UIKit/Reference/UIView_Class/UIView/UIView.html#//apple_ref/doc/uid/TP40006816-CH3-SW14) `Use of this method is discouraged in iOS 4.0 and later. You should use the block-based animation methods to specify your animations instead.` – Paul.s Apr 22 '13 at 10:46
  • @Shivam S.Kara you used this code?? and try demo?? – Paras Joshi Apr 22 '13 at 12:27
  • Nope - I was just letting you know that the use of the non block-based api is discourages. – Paul.s Apr 22 '13 at 13:31
0

Try it....

- (IBAction)viewCommentBtnClk:(id)sender
{
ShowCommentViewController *showCommentVC = [[ShowCommentViewController alloc]init];
showCommentVC.buss_id = business_id;
[UIView beginAnimations:@"animation" context:nil];
[UIView setAnimationDuration:1.0];
[UIView setAnimationTransition:UIViewAnimationTransitionFlipFromLeft forView:self.navigationController.view cache:NO];
[self.navigationController pushViewController:showCommentVC animated:YES];
[UIView commitAnimations];
[self presentModalViewController:showCommentVC animated:YES];
[showCommentVC release];
}

Hope i helped.

Chirag Pipaliya
  • 1,281
  • 12
  • 20
0

their are many posts available for this question

turn-a-page-like-a-book-with-uiview

3d-door-open-animation-between-two-uiviewcontrollers

implementing-ibooks-page-curling THIS IS GREAT

Hope you will find the solution from this .....

Community
  • 1
  • 1
Nirav Gadhiya
  • 6,342
  • 2
  • 37
  • 76