添加删除SUBVIEW
1. 添加 [self.view addSubview:customView]; 2. 删除一个view上面所有的subview for(UIView *subview in [self.view subviews]) { [subview removeFromSuperview]; }
时间: 2024-11-01 16:06:01
1. 添加 [self.view addSubview:customView]; 2. 删除一个view上面所有的subview for(UIView *subview in [self.view subviews]) { [subview removeFromSuperview]; }