UIViewController remove subview
Posted
by ghiboz
on Stack Overflow
See other posts from Stack Overflow
or by ghiboz
Published on 2010-06-12T13:38:34Z
Indexed on
2010/06/12
13:43 UTC
Read the original article
Hit count: 842
Hi all! I add a view as subview of my uiviewcontroller like this:
// into my ViewController:
UIImageView *imView =[[UIImageView alloc] initWithImage:[UIImage imageNamed:@"img.jpg"]];
imView.frame = CGRectMake(2, 46, 1020, 720);
[self.view addSubview:imView];
now, with another button I wish remove the imView from the subview chain.. how can I do to do this?? thanks
© Stack Overflow or respective owner