Hide uiview, but not it's subview?
Posted
by
Malene
on Stack Overflow
See other posts from Stack Overflow
or by Malene
Published on 2011-01-11T15:50:59Z
Indexed on
2011/01/11
15:53 UTC
Read the original article
Hit count: 113
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];
© Stack Overflow or respective owner