Reputation: 24820
In every application,
there is always written as [window makeKeyAndVisible];
What is mean by makeKey?
Upvotes: 21
Views: 22704
Reputation: 4209
Makes the receiver the key window and makes that window visible.
This is a convenience method to make the receiver the main window and displays it in front of other windows. You can also hide and reveal a window using the inherited hidden property of UIView.
Upvotes: 2
Reputation: 4619
This method call performs a critical function. If you omit it then the top level view to the window will not be autoresized however you have set the springs and struts. Took me a while to figure that out: if the in-call status bar resizing is not happening, check to see that the window is marked as key.
Upvotes: 3
Reputation: 1288
The key window is the window which will receive user interaction.
You might take a look at this:
Upvotes: 24
Reputation: 26859
This means that this is the window that accepts keyboard input. This matches similar nomenclature on Mac OS X.
Upvotes: 5