I have a -(void)assignCats method in my test project, and I need to trigger the code in it from two seperate buttons. I know how to use IBAction, but how do I make two IBActions trigger the same (void)?
I have a -(void)assignCats method in my test project, and I need to trigger
Share
Just call your method from within the
IBActionmethods.
IBActionis also actually avoidreturntypedef. It is simply used by Xcode to know what is available for use in interface connections.