Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

makeKeyAndVisible & makeKeyWindow - uiwindow in iphone

Tags:

In every application,

there is always written as [window makeKeyAndVisible];

What is mean by makeKey?

like image 809
Sagar Kothari Avatar asked Oct 01 '09 18:10

Sagar Kothari


People also ask

What is makeKeyAndVisible?

makeKeyAndVisible()Shows the window and makes it the key window.

What is window in Swift?

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.


2 Answers

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

like image 80
Rob Avatar answered Sep 19 '22 00:09

Rob


This means that this is the window that accepts keyboard input. This matches similar nomenclature on Mac OS X.

like image 27
Alex Avatar answered Sep 21 '22 00:09

Alex