Hide uiview, but not it's subview?
- by Malene
Hi!
I have an app where i add ViewB as a subview to ViewA... But the background of ViewB is clearColor, which means that I can see ViewA through ViewB! If I set viewA to be hidden, ViewB goes away too!
I am making a "flip-transition" between the views, so I can't just remove ViewA and then add ViewB :-/
-Anybody got an idea about what I can do?
Here's my code:
[UIView beginAnimations:nil context:nil];
[UIView setAnimationDuration:1.0];
[UIView setAnimationTransition:UIViewAnimationTransitionFlipFromRight
forView:mainTableView
cache:YES];
[mainTableView addSubview:subTableView];
[UIView commitAnimations];