Try this one.
Declare your [self setupGame]; method in buttonPressed
action instead of - (void)viewDidLoad
like below.
- (IBAction)buttonPressed
{
if (count == 0)
{
[self setupGame];
}
count++;
scoreLabel.text = [NSString stringWithFormat:@"Punktestand: %li",(long)count];
}
And if your alertview
is coming and you cancel alertview or after share in twitter, your game will reset not waiting for button click. If you want you can change also. no problem :)