J'ai une méthode qui appelle une autre méthode avec 1 paramètre à une autre classe. Il fonctionne parfaitement, mais maintenant j'ai besoin 1 plus de paramètres voici mon code:obj-c: programmation iphone, méthode d'appel avec 2 paramètres
Je reçois un 'AddObject peut ne pas répondre'
test.m
méthode d'appel:
DrunkeNewIdeaAppDelegate *appDelegate = (DrunkeNewIdeaAppDelegate *)[[UIApplication sharedApplication] delegate];
Testes *myLevelObject = (Testes *)appDelegate.testViewController1;
[myLevelObject addobject:rephereanswer,nbimportant];
méthode
appelé:
testes.h
-(void)addobject:(double)rephereanswer:(double)nbimportant;
testes.m
-(void)addobject:(double)rephereanswer:(double)nbimportant{
ressemble à travailler thx – hugo411