Hi all,
seems like a quite easy problem but I don't get it. It have two UIButtons, one is titled 'next' the other is titled 'previous'. Both are linked to the same method. All I wanna do is change the variable 'helpStatus'depending on which button is pressed:
if([sender currentTitle] == @"next"){
helpStatus++;
}
if ([sender currentTitle] == @"previous"){
helpStatus--;
}
NSLog(@"%@", [sender currentTitle]);
the logged titels are 'next' and 'previous' just like it should be but it doesn't work and I don't know why.