How to stack / z-position of several UIElements (uilabel, uiimageview, etc.) on top of each other?

I have several user interface elements on my screen (programmatically), and I need an efficient way to give each subview a z-index parameter, so I can stack certain elements on top of the others.

Does anyone have a solution?

+3
source share
1 answer

The usual method -addSubview:will add a new look on top of your siblings.

, bringSubviewToFront:, insertSubview:belowSubview: .., , " " UIView

+9

Source: https://habr.com/ru/post/1754920/


All Articles