如何在一个UINavigation/TabBar转换中使用UIViewAnimationTransition类型?
发布于 2010-03-09 05:08:15
我发现的唯一方法是禁用内置的过渡动画,并使用您自己的动画。对于UINavigationController,我使用类似以下内容:
UIViewAnimationTransition trans = UIViewAnimationTransitionCurlUp;
[UIView beginAnimations: nil context: nil];
[UIView setAnimationDuration:0.5];
[UIView setAnimationTransition: trans forView: [delegate window] cache: YES];
[navController pushViewController:detailController animated:NO];
[UIView commitAnimations];发布于 2010-03-08 21:57:20
不你不能。
(适用于UINavigationController there's a -pushViewController:transition:forceImmediate:。)
https://stackoverflow.com/questions/2401403
复制相似问题