1
votes

In my application,i want to set pop view controller right to left.Where as the push view controller flow left to right ,That fine .I tried this How to change the Push and Pop animations in a navigation based app but it works by transition animation view i want without animation pop view controller right to left?please help to solve

1
What do you mean by without animation pop view controller right to left? Do you want to just disable animations? Can you please clarify.iDev
Please be clearer , cant make head or tail of wat ur saying ...IronManGill
@ACB i just want by default animation while clicking the pushview as same in pop view but right to left with Timingiosdev
In that case what was the issue with stackoverflow.com/questions/2215672/… and stackoverflow.com/questions/9480458/change-animation-transition? Why did you choose not to use that?iDev

1 Answers

3
votes

for pop effect

ViewController *back = [[ViewController alloc]initWithNibName:@"ViewController" bundle:nil];
NSMutableArray *vcs =  [NSMutableArray arrayWithArray:self.navigationController.viewControllers];
[vcs insertObject:back atIndex:[vcs count]-1];
[self.navigationController setViewControllers:vcs animated:NO];
[self.navigationController popViewControllerAnimated:YES];