hey all
in my app i have this method
-(void) Setinput:(int)input {
//value declared in .h
value = input;
switch(value){
case(0)
[b_do setTitle:@"Do" forState:(UIControlState )UIControlStateNormal];
[b_re setTitle:@"Re" forState:(UIControlState )UIControlStateNormal];
[b_me setTitle:@"Me" forState:(UIControlState )UIControlStateNormal];
[b_fa setTitle:@"Fa" forState:(UIControlState )UIControlStateNormal];
[b_sol setTitle:@"Sol" forState:(UIControlState )UIControlStateNormal];
[b_la setTitle:@"La" forState:(UIControlState )UIControlStateNormal];
[b_ci setTitle:@"Ci" forState:(UIControlState )UIControlStateNormal];
[b_doo setTitle:@"Doo" forState:(UIControlState )UIControlStateNormal];
break;
case 1
[b_do setTitle:@"Doo" forState:(UIControlState )UIControlStateNormal];
[b_re setTitle:@"Ree" forState:(UIControlState )UIControlStateNormal];
[b_me setTitle:@"Mee" forState:(UIControlState )UIControlStateNormal];
[b_fa setTitle:@"Faa" forState:(UIControlState )UIControlStateNormal];
[b_sol setTitle:@"Soll" forState:(UIControlState )UIControlStateNormal];
[b_la setTitle:@"Laa" forState:(UIControlState )UIControlStateNormal];
[b_ci setTitle:@"Cii" forState:(UIControlState )UIControlStateNormal];
[b_doo setTitle:@"Dooo" forState:(UIControlState )UIControlStateNormal];
break;
case 2;
//code
break;
default
...
break;
}
}
in the mainviewcontroller when i write this code nothing happen why ?
MainViewController xxx = [[MainViewController alloc] init];
[xxx Setinput:0]