iphone - layer.zPosition does not work with non-sibling UIViews -


I have a fairly complex hierarchy of UIImageView s Basically, Code> UIImageView went in front of each other, then he was swapping the siblings. Then I got to know about myUIImageView.layer.zPosition and instead it used to be a very easy switch to use almost works all the time That zPosition showed that only Brother works in layers is great! So I have two questions: is there any real document about this? And, is it some kind of fudge that I can use to do this work? (Like never seen, adding all UIImageViews to me). By the title of your question, I wonder if you think that

property works with brother layers You have every image with property zPosition To deal with the depth of, you have to keep all the images in the form of brother layers within a single UIView object. zPosition property is entered in Apple:

ZPosition specifies the z-axis component of the layer's position ZPosition uses the relative layer of its brothers layers Is used to determine the visual status of. This layer should not be used to specify the order of siblings, rather reorder the layer in the sublevel array.

Comments