UIWindow是一种特殊的UIView,通常在一个app中只会有一个UIWindow,iOS程序启动完毕后,创建的第一个视图控件就是UIWindow,接着创建控制器的view,最后将控制器的view就显示在屏幕上了;一个iOS程序之所以能显示到屏幕上,完全是因为它由UIWindow。
A UIScreen object that identifies a physical screen connected to the device.
A UIWindow object that provides drawing support for the screen.
A set of UIView objects to perform the drawing, These objects are attached to the window and draw their contents when the window asks them to.