iOS 🍎/iOS
Responder chain (1)
yongmin.Lee
2021. 12. 6. 19:30
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