我想优化我的应用程序 - 我刚刚从组织者那里下载了崩溃日志。我遇到以下崩溃 3 次。大家有什么想法吗,怎么了?
这是行的代码:
-(void)checkAnswer:(int)theAnswerValue {
[holeView removeFromSuperview];
[circleView removeFromSuperview];
[self.circularProgressView removeFromSuperview];
if(rightAnswer == theAnswerValue) {
NSLog(@"Correct Answer");
} else {
NSLog(@"Wrong Answer");
}
[self updateScore];
}
- (IBAction)buttonThree:(id)sender {
audioPlayer = nil;
NSInteger theAnswerValue = 3;
[self checkAnswer:(int)theAnswerValue];
}
如果有人可以帮助我,那就太好了?!常规顺序应该是,一旦按下按钮(三),游戏就应该检查答案。