I would like to know how I could delete UIImageView from my superview. I tried a lot of stuff, such as:
- imageView.hidden = YES;
- [imageView removeFromSuperview];
- imageView.opaque = YES;
- imageView.alpha = 0.0f;
But the problem is that when I’m removing the UIImageView the space that it was taking is visible. I would like to re-size the SuperView to it’s initial size.
How could I do this?
Thanks in advance!
So it sounds like you actually have two different views in one window. Let’s just say they’re each taking up half of the space on the screen, viewA is the one you want, viewB is the one you don’t.