0
這是我剛纔的問題跟進警告框凍結在模擬器後if語句
我有這樣的代碼
基本上它意味着當計時器達到你得到一個消息框說做得好ECT到然後屏幕重置,你可以重新玩,所有的圖像重置和開始按鈕重新出現,但你不能清除它只是凍結在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];
}
這工作(現在我可以關閉該消息框,但一切仍是在回地面運行的是與你的
timeLabel.text
,我可以向您發送電子郵件我的代碼,你可以看看,因爲我覺得我可能在任何地方循環,它的一團糟,只有大約50行,所以應該是大部分的無用數字? –對不起,我不介意回答問題,但代碼審查聽起來像我應該得到報酬 –
哈哈無後顧之憂無論如何非常感謝(我看着你憤怒的Gran應用程序似乎很多小時都進入了) –