最終更新:2017-06-06 (火) 14:12:38 (2507d)
UIWindow
Top / UIWindow
https://developer.apple.com/documentation/uikit/uiwindow
Topics
Configuring the Window
- UIWindow.rootViewController?: UIViewController? - The root view controller for the window.
- UIWindow.windowLevel?: UIWindowLevel? - The position of the window in the z-axis.
- UIWindow.screen?: UIScreen - The screen on which the window is displayed.
Making Windows Key
- UIWindow.isKeyWindow?: Bool - A Boolean value that indicates whether the window is the key window for the app.
- UIWindow.makeKeyAndVisible() - Shows the window and makes it the key window.
- UIWindow.makeKey?() - Makes the receiver the key window.
- UIWindow.becomeKey?() - Called automatically to inform the window that it has become the key window.
- UIWindow.resignKey?() - Called automatically to inform the window that it is no longer the key window.
メモ
- iPhone OSとMac OS Xの違いは、ウインドウの使用方法です。Mac OS Xアプリケーションにはいくつでもウインドウを持たせることができますが、ほとんどのiPhoneアプリケーションではウインドウが1つしかありません。1つのiPhoneアプリケーション内で複数の画面分の情報を表示するには、ウインドウを変更するのではなく、アプリケーションウインドウのカスタムビューを切り替えます。