I have a problem using the responder chain in swift.
When I configure the target buttons with a null target, for example:
someButton.addTarget(nil, action:"addButtonTapped:", forControlEvents: .TouchUpInside)
The action will send a chain of responders until the action is processed in the controller. So far so good :-)
But I want to intercept the action, execute some code and pass it to the controller. But I can’t find a way to do this quickly. In ObjC, this task is easy to do, I think there should also be a quick way.
Thanks in advance for any help :-)
source
share