停靠模式
view1.clipsToBounds = YES;//切割view1范围内的视图
view1.autoresizesSubviews = YES;//子视图自动适应大小,在父视图中设置
view2.autoresizingMask = UIViewAutoresizingFlexibleTopMargin | UIViewAutoresizingFlexibleLeftMargin;//子视图在父视图中的适应方式,在子视图中设置
imageView.contentMode = UIViewContentModeScaleAspectFill;//视图中的图片模式
移动
[self.view insertSubview:view3 atIndex:1];
[self.view sendSubviewToBack:view2];
[self.view bringSubviewToFront:view1];
[self.view exchangeSubviewAtIndex:0 withSubviewAtIndex:2];
[view1 isDescendantOfView:self.view]