From the title of your question, I wonder if you understand that the property zPositionworks with the word, not nets. To cope with the depth of each image that has a property zPosition, you will need to have all the images as layers for the same UIView object. The property is zPositiondocumented in Apple 's Core Animation Programming Guide :
The zPosition property indicates the component of the z axis at the position of the layer. ZPosition is designed to set the visual position of a layer relative to its related layers. It should not be used to indicate the order of the brothers brothers, instead reorder the layer in the sublevel array.
source
share