我想优化我的应用程序 - 我刚刚从组织者下载了崩溃日志。我发生了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];
}
如果有人可以帮助我,那会很棒吗?!常规顺序应该是,只要按下按钮(三),游戏就应该检查答案。