I want to add multiple methods in that respond as the selector when a button is pressed. Can one button have two methods that get called when the button is pressed?
Through my research, I found, in the objective-C Programming Language Guide, that a button will call All methods with the same name as the selector.
I want my button to do two actions at the same time:
- play the audio file
display views in array.
UIBarButtonItem *play = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemPlay target:self action:@selector(play:)];
Appreciate advice.
Thanks