这是我上一个问题的后续
我有这个代码
基本上它的意思是当计时器到达时,您会收到一个消息框,说做得好,然后屏幕重置,您可以再次播放,所有图像重置并且开始按钮重新出现,但您无法清除它刚刚冻结的警报框sim,我在这里错过了什么吗?
这是代码
if (MainInt <= 0)
{
[timer invalidate];
timelabel.text = @"5";
[startbutton setHidden:NO];
CGRect frame = [player frame];
frame.origin.x = 137.0f;
frame.origin.y = 326.0;
[player setFrame:frame];
CGRect frame2 = [enemy frame];
frame2.origin.x = 90.0f;
frame2.origin.y = 20.0;
[enemy setFrame:frame2];
CGRect frame3 = [enemy2 frame];
frame3.origin.x = 210.0f;
frame3.origin.y = 20.0;
[enemy2 setFrame:frame3];
UIAlertView *alert1 = [[UIAlertView alloc] initWithTitle:@"GRATZ" message:[NSString stringWithFormat: @"Congratulations you made it to Level : %d Now try then next level" ,fred] delegate:nil cancelButtonTitle:@"Dismiss" otherButtonTitles:nil];
[alert1 show];
[alert1 release];
}