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
Asked
Active
Viewed 3,082 times
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 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
-
1In 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 Answers
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,858
- 6
- 46
- 72
-
Here in this code you push the viewcontroller but it gives effect of left to right. – Rahul Patel Oct 15 '12 at 04:30
-
Sorry i dont know about that. but if this answer is helpful to you than you can accept it or upward the point of answer. thanks – Rahul Patel Oct 16 '12 at 04:29