Quote:
Originally Posted by mk12
Thanks - Where can I find the documentation for IBActions? There's so many of them and I don't know when they are called.
|
IBAction is simply a substitute for the void keyword. It's just used to tell Interface Builder which methods in your class can be hooked up to control events (like tapping on a button).
Code:
- (IBAction) myMethod:(id) sender
is the same as
Code:
- (void) myMethod:(id)sender
Except that the first one will be picked up by Interface Builder automatically. (I've read that the second one might as well but you might as well be clear in your intentions.)