UIWindow windows
A. All UI is placed directly or indirectly on the UIWindow.
B. UIWindow inherits from UIView.
C. Creation of Windows: Initializes a Window object, specifying its size, specified in the Home screen ([UIScreen mainscreen]) range.
D. Set the Windows as the main window and make them visible [window makekeyandvisible]; An application has only one main window.
/*
Appdelegate.m
-(BOOL) Application: (UIApplication *) application didfinishlaunchingwithoptions: (Nsdictionary *) written in LaunchOptions method
*/
Create an application window
Self.window = [[UIWindow alloc] initwithframe:[[uiscreen mainscreen] bounds]];
Self.window.backgroundColor = [Uicolor Whitecolor];
Make Widows a key window display
[Self.window makekeyandvisible];
Initialize a Viewcontroller
Firstviewcontroller *FIRSTVC = [[Firstviewcontroller alloc] init];
Assign to window, FIRSTVC as the root View Controller of window
Self.window.rootViewController = FIRSTVC;
IOS Development Learning User Interface (2) UIWindow windows