Ok so after reading a bit more I understood that the target has to be a UIResponder which could be a UIViewController.
I am running into another issue now that the button is disabled. It’s grayed out for some reason. So when I press on it, no events are passed to the target. Any ideas why it is disabled?
Topic:
UI Frameworks
SubTopic:
UIKit
Tags: