1

How can I use UIViewAnimationTransition type in one of UINavigation/TabBar transitions ?

Jerry Coffin
  • 476,176
  • 80
  • 629
  • 1,111
Sukitha Udugamasooriya
  • 2,268
  • 1
  • 35
  • 56

2 Answers2

5

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];
Shawn Craver
  • 1,986
  • 1
  • 15
  • 16
2

No you can't.

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

Community
  • 1
  • 1
kennytm
  • 510,854
  • 105
  • 1,084
  • 1,005