0

I try to create simple transitions between views for my app.

-(void)tabBarController:(UITabBarController *)tabBarController didSelectViewController:(UIViewController *)viewController{
    CATransition *transition;
    transition = [CATransition animation];
    transition.type = kCAGravityLeft;
    transition.duration = 1.25;
    [[[viewController view]layer]addAnimation:transition forKey:nil];
}

I put the quartzcore.framework in my project and i call it.

My problem is that the app is launched but without the transition.

Thanks

Nick Weaver
  • 47,228
  • 12
  • 98
  • 108

1 Answers1

0

Take a look at this topic : iPhone UIView Animation Best Practice

Community
  • 1
  • 1
rockeye
  • 2,765
  • 2
  • 30
  • 44