Hi there
Newbie question - beware
I have 9 buttons on my view and I'd like to change the title of them when they get clicked. I dont want to declare nine different methods but just one that handles all. I thought I could use something like this
It's probably totally stupid but I am new to iPhone programming and have no clue how to make this work. Any help appreciated
Newbie question - beware
I have 9 buttons on my view and I'd like to change the title of them when they get clicked. I dont want to declare nine different methods but just one that handles all. I thought I could use something like this
Code:
- (IBAction)setTitle:(id)sender{
sender.title = @"sometitle";
}
It's probably totally stupid but I am new to iPhone programming and have no clue how to make this work. Any help appreciated