我正在开发一个应用程序,我必须打开像这个视频的卡片。
http://www.youtube.com/watch?v=srnRuhFvYl0&feature=youtu.be
有人可以建议我使用任何库或以任何方式在2个uiviews之间制作此类动画
答案 0 :(得分:1)
尝试此演示以获得效果。
答案 1 :(得分:0)
这里你可以用波纹管动画实现逻辑..
[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];
您也可以使用UIViewAnimationTransitionCurlDown
代替UIViewAnimationTransitionCurlUp
另见演示.. leaves-developers
答案 2 :(得分:0)
试试吧......
- (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];
}
希望我帮助过。
答案 3 :(得分:0)
他们有很多可用于此问题的帖子
turn-a-page-like-a-book-with-uiview
3d-door-open-animation-between-two-uiviewcontrollers
implementing-ibooks-page-curling THIS IS GREAT
希望你能从中找到解决方案......