Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
任何人都知道如何以编程方式设置 UIImageViews 的 z 顺序?实例化它们的顺序将使最后一个实例最靠近屏幕前面,但是如何在运行时更改它呢?
谢谢 // :)
如果UIImageView已经是子视图,则可以使用以下内容:
UIImageView
bringSubviewToFront
sendSubviewToBack
或以下任何一项,如果您要插入UIImageView作为子视图:
insertSubview:atIndex
insertSubview:aboveSubview
insertSubview:belowSubview