Spot the bug in this UIView
subclass. Bonus points if you know what happens and why this actually works most of the time. I’ll post the answer later today.
To clarify the scope: it’s directly inside the subclass so pageControl
is a property.
10 hours later: What happens:
- self is valid… but weird (curried?)
- The target param is typed
Any?
so self is OK. - The target is set as
NSNull
somehow. - This is a nil-targeted action (traverses the responder chain). My view is usually on the responder chain so still receives the action.