I have a containerview with 2 subviews. I want to flip from one to another. The problem is that some kind of flickering appears. It doesn't happen on the iPhone 3GS, but on the Simulator and the iPhone 3G: http://www.hanspinckaers.com/upload/Flickering.png
Does anyone know why this happens?
This is the code:
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration: 0.75];
[UIView setAnimationDidStopSelector:@selector(afterAnimationProceed)];
[UIView setAnimationDelegate:self];
[UIView setAnimationTransition:UIViewAnimationTransitionFlipFromRight forView:self.containerView cache:YES];
if(self.mapViewController.view.superview){
[self.mapViewController.view removeFromSuperview];
[self.containerView addSubview:self.tableController.view];
} else {
[self.tableController.view removeFromSuperview];
[self.containerView addSubview:self.mapViewController.view];
}
[UIView commitAnimations];
Thanks in advance!
Hans