With a normal button, I can create a Touch Up Inside method easily. With a UIBarButtonItem
, the only IBAction
available is Selector
. Looking at previous Stack Overflow answers, I tried pressing a down button on the UIBarButtonItem
to reveal a button, but there isn't any:
How can I create this IBAction
? Thank you!
UPDATE: I tried creating an IBAction manual, and then ctrl dragging that IBAction to the Quit button in the file selector in the storyboard. But the method still isn't being triggered:
The line isn't being printed. Please help! Thanks.