본문 바로가기
iOS 🍎/iOS

Responder chain (1)

by yongmin.Lee 2021. 12. 6.

 

If the view chooses to not handle a touch event, then it will be sent up the responder chain, which will follow this path:

  • The first responder is the hit-tested view (the view under the touch)
  • Next responder is its super view
  • The chain continues up the view hierarchy until it reaches a view that is associated with a view controller
  • That view controller will be the next responder
  • If this view controller is a root controller, then the window will be the next responder
  • The application is the window’s next responder
  • The last responder in the chain is the App delegate

'iOS 🍎 > iOS' 카테고리의 다른 글

Xcode Target, Project, Workspace  (0) 2021.12.06
APNS, Apple Push Notification Service  (0) 2021.12.06
[Objective-C] atomic vs nonatomic  (0) 2021.12.06
iOS Code Signing  (0) 2021.06.25
RxSwift  (0) 2021.05.18