my code :
UIButton *boutonSuppr = [UIButton buttonWithType:UIButtonTypeRoundedRect];
boutonSuppr.frame = rectBoutonSuppr;
[boutonSuppr setBackgroundImage: [UIImage imageNamed:@"croixTest.png"] forState:UIControlStateNormal];
[monScrollView addSubview: boutonSuppr];
int numb = 10;
[boutonSuppr addTarget:self action:@selector(boutonSupprAppuye) forControlEvents:UIControlEventTouchUpInside];
My method declared : - (void)boutonSupprAppuye:(int) numero;
My problem is that I need to send a parameter in the method because I have several UIButton. For example, I want to send "(int)numb" but when I do that :
[boutonSuppr addTarget:self action:@selector(boutonSupprAppuye:numero) forControlEvents:UIControlEventTouchUpInside];
It doesn't work.
Thank you in advance.