我是iPhone
开发人员的新手,
我想在点击按钮时实现不同的Animations
,我的主页上有5 Button
每次点击按钮,我都想导航到不同Animation
的新页面,所以我想知道iPhone
中可用的不同动画是什么。
(1)
[UIView beginAnimations:@"yourAnim" context:nil];
[UIView setAnimationTransition:UIViewAnimationTransitionFlipFromLeft forView:yourView cache:cacheFlag];
...
[UIView commitAnimations];
(2)
[UIView beginAnimations:@"yourAnim" context:nil];
[UIView setAnimationTransition:UIViewAnimationTransitionCurlUp forView:yourView cache:cacheFlag];
...
[UIView commitAnimations];
提前致谢!
答案 0 :(得分:2)
答案 1 :(得分:1)
这些是5种不同的动画转换:
UIViewAnimationTransitionNone,
UIViewAnimationTransitionFlipFromLeft,
UIViewAnimationTransitionFlipFromRight,
UIViewAnimationTransitionCurlUp,
UIViewAnimationTransitionCurlDown,
答案 2 :(得分:0)
看看CATransition课程 https://developer.apple.com/library/mac/#documentation/graphicsimaging/reference/CATransition_class/Introduction/Introduction.html
答案 3 :(得分:0)
我认为你的轰鸣声方法可以测试不同类型的过渡动画......
- (void) pushController: (UIViewController*) controller
withTransition: (UIViewAnimationTransition) transition
{
[UIView beginAnimations:nil context:NULL];
[self pushViewController:controller animated:NO];
[UIView setAnimationDuration:.5];
[UIView setAnimationBeginsFromCurrentState:YES];
[UIView setAnimationTransition:transition forView:self.view cache:YES];
[UIView commitAnimations];
}
你可以从今年五月获得想法.....