首页 > 代码库 > 03-添加删除subView

03-添加删除subView

添加删除SUBVIEW

1. 添加[self.view addSubview:customView]; 2. 删除一个view上面所有的subviewfor(UIView *subview in [self.view subviews]) {    [subview removeFromSuperview];}