How can I load a view from left side?
ios5, iphone, uiviewanimation, uiviewcontroller
Solution
Here it is
CATransition *animation = [CATransition animation];
[[self navigationController] pushViewController:elementController animated:NO];
[animation setDuration:0.45];
[animation setType:kCATransitionPush];
[animation setSubtype:kCATransitionFromLeft];
[animation setTimingFunction:[CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionDefault]];
[[elementController.view layer] addAnimation:animation forKey:@"SwitchToView1"];
For this you have to `#import <QuartzCore/QuartzCore.h>`
Problem
``` - (void)pushViewController:(UIViewController *)viewController animated:(BOOL)animated ``` This function load a view from right side. How can I Load a view from left side?