We can tap a NavigationItem in a rect that larger than the item rect displayed.
I know UINavigationItem is not a subclass of UIView, but the Accessibility Inspector tell me its trait is Button. I’m confused.
When we touch inside a button but not lift, then move the finger outside the button, the button is still in touch, how does that works?
I want to know how dose the responder chain works in this case.
1. How does the button become the first responder when we touch inside it.
2. How could the button know whether I lift my finger outside it.
3. What does the responder chain look like throughout this?
Thank you…
Create a cuestom
UINavigationItemwithinitWithCustomView:and pass in a customUIViewof whichhitTest:withEvent:is overridden to return self with bigger touch area.