1

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

Community
  • 1
  • 1
iosdev
  • 277
  • 8
  • 18
  • 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 Oct 13 '12 at 07:41
  • Please be clearer , cant make head or tail of wat ur saying ... – IronManGill Oct 13 '12 at 07:44
  • @ACB i just want by default animation while clicking the pushview as same in pop view but right to left with Timing – iosdev Oct 13 '12 at 08:15
  • 1
    In that case what was the issue with http://stackoverflow.com/questions/2215672/how-to-change-the-push-and-pop-animations-in-a-navigation-based-app and http://stackoverflow.com/questions/9480458/change-animation-transition? Why did you choose not to use that? – iDev Oct 13 '12 at 20:51

1 Answers1

3

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];
Rahul Patel
  • 5,775
  • 5
  • 42
  • 72