iOS UIView 最上层 最下层 插入某层
2020-07-21 本文已影响0人
唐人街的乞丐
//将一个视图放在另一个视图上面
- (void)insertSubview:(UIView *)view belowSubview:(UIView *)siblingSubview;
//将一个视图放在另一个视图下面
- (void)insertSubview:(UIView *)view aboveSubview:(UIView *)siblingSubview;
//view在最上层
- (void)bringSubviewToFront:(UIView *)view;
//view在最下层
- (void)sendSubviewToBack:(UIView *)view;