In every application,
there is always written as [window makeKeyAndVisible];
What is mean by makeKey?
makeKeyAndVisible()Shows the window and makes it the key window.
Windows work with your view controllers to handle events and to perform many other tasks that are fundamental to your app's operation. UIKit handles most window-related interactions, working with other objects as needed to implement many app behaviors.
The key window is the window which will receive user interaction.
You might take a look at this:
http://developer.apple.com/mac/library/documentation/Cocoa/Conceptual/WinPanel/Concepts/ChangingMainKeyWindow.html
This means that this is the window that accepts keyboard input. This matches similar nomenclature on Mac OS X.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With