ios - UIKit: Initial first responder? -


when app launches, initial first responder?

according uikit docs first responder can set becomefirstresponder message. however, if message isn't sent, initial first responder? uiapplication? key window?

also, there property anywhere points current first responder?

in both macos & ios, each window has own uiresponder (or, more precise, each window is uiresponder -- uiwindow descends uiresponder), means each window can have own first responder. on macos, there can many open windows (each 1 first responder) , under ios, there 1 uiwindow displayed @ 1 time.

each window have first responder (whether window itself, or text field receiving keyboard events, or whatever). can query each window's responder chain walking down each of them via "nextresponder" api.

i'm simplifying things little sake of nice, simple summarized answer hope helps. here more information ios responder chain, shows how initial view (e.g. first responder) gets event , if can't handle it, event passed parent views, window , application.


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -