I have placed code in my App Delegate such that I can transition from one view controller to another.
However when I press the button, the transition to my SecondViewController
is not made. How should I go about doing this? any simple way to bring next view controller,(pushview controller)...
Here is my code:
SecondViewController *aSecondView = [[SecondViewController alloc] init];
[self setSecondViewController:aSecondView];
[aSecondView release];
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration:2.0];
[UIView setAnimationTransition:UIViewAnimationTransitionFlipFromLeft
forView:window
cache:YES];
[viewController.view removeFromSuperview];
[self.window addSubview:[secondViewController view]];
[UIView commitAnimations];