作者:约醉 | 来源:互联网 | 2023-05-27 07:50
设置不同subView的层次:将subView挪到最上边self.view.bringSubviewToFront(subView)将subView挪到最下边sel
设置不同subView的层次:
self.view.bringSubviewToFront(subView)
self.view.sendSubviewToBack(subView)
self.view.exchangeSubviewAtIndex(2, withSubviewAtIndex: 3)