UIKit系列常见处理办法集合
图层更换
//图层置顶
[self.view bringSubviewToFront:view];
//图层置底
[self.view sendSubviewToBack:view];
//用第二层子视图 换 第一层子视图的位置 self.view是第0层
[self.view exchangeSubviewAtIndex:1 withSubviewAtIndex:2];
//图层置顶
[self.view bringSubviewToFront:view];
//图层置底
[self.view sendSubviewToBack:view];
//用第二层子视图 换 第一层子视图的位置 self.view是第0层
[self.view exchangeSubviewAtIndex:1 withSubviewAtIndex:2];
本文标题:UIKit-UIView
本文链接:https://www.haomeiwen.com/subject/yphzyhtx.html
网友评论