Hello,
I've problem in View animation in iOS5. it works fine on iOS4.x version. but it dosen't work on iOS5.
here is code snippet.
A_ViewController is main controller and appDelegate is global variable
and it push bviewController when it appear.
and then it switch the bview and cview. all works fine.
but the animation(sliding effect) is not work on iOS5.
do you know why it is not working on iOS5???
Code:
A_ViewController
- (void)viewWillAppear:(BOOL)animated
{
if(appDelegate.intGotoTabIndex == 1)
{
B_ViewController *bviewController = [[B_ViewController alloc] initWithNibName:@"B_ViewController" bundle:nil];
[self.navigationController pushViewController:bviewController animated:YES];
bviewController release];
}else if(appDelegate.intGotoTabIndex == 2){
C_ViewController *cviewController = [[C_ViewController alloc] initWithNibName:@"C_ViewController" bundle:nil];
[self.navigationController pushViewController:bviewController animated:YES];
cviewController release];
}
}
B_ViewController
- (IBAction) Close_Clicked:(id)sender
{
appDelegate.intGotoTabIndex = 2;
[self.navigationController popViewControllerAnimated:NO];
}
C_ViewController
- (IBAction) Close_Clicked:(id)sender
{
appDelegate.intGotoTabIndex = 1;
[self.navigationController popViewControllerAnimated:NO];
}