开发者

UINavigation/TabBar transition animation

开发者 https://www.devze.com 2022-12-22 01:43 出处:网络
How can I use UIViewAnimationTransition type in one of UINavigation/TabBar transitions ?开发者_如何转开发Only way I\'ve found is to disable the built in transition animations, and use your own. I use

How can I use UIViewAnimationTransition type in one of UINavigation/TabBar transitions ?开发者_如何转开发


Only way I've found is to disable the built in transition animations, and use your own. I use something like the following for a 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];


No you can't.

(For UINavigationController there's a private -pushViewController:transition:forceImmediate:.)

0

精彩评论

暂无评论...
验证码 换一张
取 消