Code:
- (void)viewDidLoad {
[super viewDidLoad];
questionLive = NO;
restartGame = NO;
theQuestion.text = @"Welcome to the Quiz Game! Think you're a pretty smart cookie, huh? Well, let's test your knowledge!";
theScore.text = @"Score:0";
theLives.text = @"";
questionNumber = 0;
myScore = 0;
myLives = 0;
[answerOne setTitle:@"Let's Play!" forState:UIControlStateNormal];
[answerTwo setHidden:YES];
[answerThree setHidden:YES];
[answerFour setHidden:YES];
[self loadQuiz];
}
In the code above, [answerOne setTitle:@"Let's Play!" forState:UIControlStateNormal];
It requires user to click answerOne button and starts the quiz.
How can the quiz display without click that button? When the app starts, first quiz display.
I tried to change it to be:
[answerOne setHidden:YES];
But, it does not work.
How should I fix it?
Secondly, how can it load the quizgame.txt which has non-English words? Does it need any encoding?