IOS How to make UIView Animation slide in

You can using: 
CATransition* transition = [CATransition animation];  
transition.duration = 0.5;  
transition.timingFunction = [CAMediaTimingFunction functionWithName:
                                 kCAMediaTimingFunctionEaseInEaseOut];  
transition.subtype = kCATransitionFromLeft;  
//kCATransitionMoveIn;kCATransitionPush, kCATransitionReveal, kCATransitionFade
//transition.subtype = kCATransitionFromTop; 
//kCATransitionFromLeft, kCATransitionFromRight, 
//kCATransitionFromTop, kCATransitionFromBottom

[appDelegate.navigation.view.layer addAnimation:transition forKey:nil];
viewController *ViewVC = [[viewController alloc] initWithNibName:@"viewController" 
                                                                       bundle:nil];

[appDelegate.navigation pushViewController:ViewVC animated:YES];

Comments

Popular posts from this blog

Java : Variables Declaring

SQL Self JOIN