2010-04-20 66 views
0

下面交换意见是,我使用的交换意见凉爽的翻页动画

MySecondViewController *tempVC = [[MySecondViewController alloc] initWithNibName:@"MySecondView"]; 
[self presentModalViewController:tempVC animated:YES]; 
[tempVC passDataWithString:@"a string" andColor:yellowcolor]; 

我怎样才能拿到爽翻页动画(如用的iBook或路霸SIGN) 我不代码不希望用户实际点击并拖动他的手指在屏幕上。我希望他按下一个按钮,动画本身就会发生。

回答

1

你看过UIViewAnimationTransition的值吗?在UIView动画块中使用它们。例如:

[UIView beginAnimations:nil context:nil]; 
[UIView setAnimationTransition: UIViewAnimationTransitionCurlUp 
forView:self.view cache:YES]; 
[UIView commitAnimations]; 
+0

多数民众赞成在伟大但你如何减慢动画。事情在我的屏幕上移动得非常快,我不能说。 – 2010-04-20 17:02:35

+1

设置持续时间。 – 2010-04-20 18:45:08