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