1. 添加 [self.view addSubview:customView]; 2. 删除一个view上面所有的subview for(UIView *subview in [self.view subviews]) { [subview removeFromSuperview]; }
03-添加删除subView,布布扣,bubuko.com
03-添加删除subView
原文:http://www.cnblogs.com/lszwhb/p/3788063.html