我将一个视图作为我的UIViewController的子视图添加,方法如下:
现在,我希望用另一个按钮将imView从子视图链中移除,我该怎么做呢?谢谢。
// into my ViewController:
UIImageView *imView =[[UIImageView alloc] initWithImage:[UIImage imageNamed:@"img.jpg"]];
imView.frame = CGRectMake(2, 46, 1020, 720);
[self.view addSubview:imView];
现在,我希望用另一个按钮将imView从子视图链中移除,我该怎么做呢?谢谢。