I add the view as a subpoint of my uiviewcontroller as follows:
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 want to remove imView from the subview chain. How can i do this? thank
source
share