So i am assuming that no-one got the restart to work?
I do have another question, how would i go about creating a quiz that had images as a part of the question? I want to make something for revision for my students so they look at the image, the question displays below it and there are 4 options to choose from.
If anyone could help me out i would appreciate it, and yes i know the thread is quite old.
So i am assuming that no-one got the restart to work?
I do have another question, how would i go about creating a quiz that had images as a part of the question? I want to make something for revision for my students so they look at the image, the question displays below it and there are 4 options to choose from.
If anyone could help me out i would appreciate it, and yes i know the thread is quite old.
So THIS TIME IT IS attached is the file for the Quiz using IB, but i changed up the quiz a lil bit. The only thing it is missing is when you hit the restart button, it will not load again! If any one can figure this out, PLEASE let me know!!!!!
Thanks!
Mandy
Hello All,
Just wondering if anyones knows how use a txt file for the questions instead of an array?
I'm trying to convert this tutorial into a maths "Times Tables" quiz.
I was wondering if anyone could lend a hand and explaining how to remove the multiple choice element and replace it with a text box and number pad, generate a times tables question and be able to compare the answer typed with the correct answer.
I was thinking either having
•*list all the times table and answers in a DB?
or
• having the app create the times tables questions and answers as the app is running and store the results in a DB?
Please help this is my University project and I've only got till april 30th.
I have tried many different things now, and nothing really works for me
First i want to pick a random question out of a lot (100+)
I have tried with some arc4random(), but not really works
Code:
questionNumber = questionNumber + 1;
I dont know how hard it would be to make it remember that question that have been asked (guess that is pretty hard)
Second i want to be able to restart the game, and this [self loadView] doesn't really help.
when i try this:
Code:
- (IBAction)buttonOne
{
if(questionNumber == 0){
// This means that we are at the startup-state
// We need to make the other buttons visible, and start the game.
[answerTwo setHidden:NO];
[answerThree setHidden:NO];
[answerFour setHidden:NO];
[self askQuestion];
}
else
{
NSInteger theAnswerValue = 1;
[self checkAnswer:(int)theAnswerValue];
if(restartGame==YES)
{
NSLog(@"meh");
//RESTART Function here
}
}
}
I get the log "meh" as a answer the last question and not when i press the restart button, very odd.
Hope someone can help, since this is a great tutorial, but needs the last method (restart please).
-Drudoo
__________________
My iPhone apps! ezyTweet - $0.99 iZky - $0.99
Im trying to make it choose a random number out of a lot of questions. The arc4random() method wont work cus i needs to be number 1 or 7 or 14 or 21 or 28 and so on. Is there a way to make it only choose between those numbers?
__________________
My iPhone apps! ezyTweet - $0.99 iZky - $0.99
Im trying to make it choose a random number out of a lot of questions. The arc4random() method wont work cus i needs to be number 1 or 7 or 14 or 21 or 28 and so on. Is there a way to make it only choose between those numbers?
Hi, yes I did it with the arc4random() , just use it and % to the number of questions you have , and then multiply that number for the numbers of row to "jump" , 6 in this case, because you have 1 question at each 6 rows
Does someone have this working when it's loading from a text file? The code in the first post was deprecated. I've since fixed it to be 4.0 compatible, but I'm getting an NSRangeException when I load in the text file.
// Make button 1 appear as a reset game button
restartGame = YES;
[answerOne setHidden:NO];
[answerOne addTarget:self action:@selector(reset)forControlEvents:UIControlEventTouchDown];
[answerOne setTitle:@"Restart the game" forState:UIControlStateNormal];
// Make button 1 appear as a reset game button
restartGame = YES;
[answerOne setHidden:NO];
[answerOne addTarget:self action:@selector(reset)forControlEvents:UIControlEventTouchDown];
[answerOne setTitle:@"Restart the game" forState:UIControlStateNormal];
I'm having trouble with this. I followed the link, but am not understanding it. Does anyone have any better documentation (doesn't have to be the exact code) but just notes on how to implement the random questions from the array?
// Make button 1 appear as a reset game button
restartGame = YES;
[answerOne setHidden:NO];
[answerOne addTarget:self action:@selector(reset)forControlEvents:UIControlEventTouchDown];
[answerOne setTitle:@"Restart the game" forState:UIControlStateNormal];
My problem is the endgame par I mean when the quiz answer the last question the program freezes?!!!! Any idea why?