I have a reasonably complex hierarchy of UIImageView
s. Originally, I was carefully swapping the sibling order when one UIImageView
moved in front of another. Then I found out about myUIImageView.layer.zPosition
and switched to using this instead. Worked out much simpler. It even works almost all the time. I found out from this SO question that zPosition
only works amongst sibling layers. Great! So I have two questions really: Is there any actual documentation about this? and, is there some kind of fudge I can use to get this to work? (like adding all my UIImageViews to a UIView that is never visible). Thx in advance.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…