i’m trying to come up with a simple game on iOS and i’s stuck in getting the scores.
here’s what i did.
in every correct button combinations i put this
ctr = ctr + 1
then here
- (void) scorer
{
if (ctr == 9)
{
[winner setHidden:NO];
}
}
i am trying this code but it is not working…
what’s wrong?
my deadline is coming i hope i could finish this early, i know it’s quite simple.
thanks in advance!
after
you should call
and you should try putting a NSLog in scorer inside and outside of the If statement so you can be sure it is being executed as expected.