UIView常见方法

- (void)addSubview:(UIView *)view;
添加一个子控件view
 
- (void)removeFromSuperview;
从父控件中移除
- (UIView *)viewWithTag:(NSInteger)tag;
根据一个tag标识找出对应的控件(一般都是子控件)
 
 UIViewController *viewContro = [[UIViewController alloc] init]; 使用代码创建一个view 
原文地址:https://www.cnblogs.com/Opaser/p/4595168.html