I have laid out the buttons in Interface Builder and connected them as outlets
@IBOutlet weak var outletCatalogDetailsToolBarLink: UIBarButtonItem!
In viewDidLoad I have this:
outletCatalogDetailsToolBarLink.target = self;
outletCatalogDetailsToolBarLink.action = Selector("OwnHandleButtonClick");
The handler is defined like this:
func OwnHandleButtonClick(Sender: AnyObject) -> Void {
However, when the button is clicked I get an error chain starting with:
unrecognized selector sent to instance
All answers I see online have the buttons created at runtime. While that is of course a solution, I would like to understand how to code against controls placed design time.