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.
私は 2 を持っています。UIWindows両方を表示するとUIWindows、最新の表示UIWindowが常に最初の表示よりも上になりますUIWindow。それぞれUIWindowが独自のUIWindowものなので、いいえSubview。
UIWindows
UIWindow
Subview
誰かがUIWindow別の後ろに配置する方法を知っていますUIWindowか?
おそらく、あなたが望むものを達成するためのよりクリーンで保守しやすい方法があると思いますが、windowLevelプロパティを使用してウィンドウが表示される順序を操作できるはずです-正直に言うと、最後にこれを試みたのはiOS 5だったので、おそらくそれはかわった。しかし、一般的には次のようにします。
windowLevel
windowToPlaceInFront.windowLevel = windowToPutInBack.windowLevel + 1.0f;