View Single Post
 
Old November 8th, 2013, 09:22 AM
BigBang BigBang is offline
Registered User
Points: 68, Level: 1
Points: 68, Level: 1 Points: 68, Level: 1 Points: 68, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Nov 2013
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default AlertView to the Concentration Game

I was trying to add an alertView to the Concentration Game but can`t make it in any possible way. If I add

Code:
if (cardIndex==0) {
                [self performSelector:@selector(endGameWithMessage:) withObject:nil afterDelay:1];}
the game finishes as soon as the view appears. If I write

Code:
if (card==0) {
                [self performSelector:@selector(endGameWithMessage:) withObject:nil afterDelay:1];}
nothing happens. I tried to make it in many ways but nothing.
How knows how to add an alertView when the game finishes? Help me, please.