Can't create a UIBarButtonItem TouchUpInside method?

363 Views Asked by At

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:

enter image description here

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:

enter image description here

The line isn't being printed. Please help! Thanks.

0

There are 0 best solutions below