What is a formal definition of a first responder in iOS?

后端 未结 3 398
孤城傲影
孤城傲影 2021-01-31 10:41

I understand that a first responder object is the receives a callback signal according to input activity, etc and that it will bubble it up the chain until a responder willing t

3条回答
  •  太阳男子
    2021-01-31 11:03

    Before the window object keep in mind one before process please.

    When the application object gets touch objects or others converts to its event object and it dispatches it to the window object. And window object sends to the most appropriate object to handle the event ( responder chain ). So window instance has property first responder instance no more one.

    weak var firstResponder: NSResponder? { get }
    

提交回复
热议问题