How can I insert a subview below the other subviews

后端 未结 6 1348
我在风中等你
我在风中等你 2020-12-24 05:45

everyone.

I have some labels that I draw them in the xib file, and add a background view using codes,but the background view is in the front of these labels, so I c

6条回答
  •  再見小時候
    2020-12-24 06:03

    You can call this method in Swift 3

    view.insertSubview(yourSubView, at: 0)
    

    or

    view.sendSubview(toBack: yourSubView)
    

提交回复
热议问题