Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 03-13-2010, 07:44 PM   #60 (permalink)
Drudoo
Registered Member
 
Join Date: Mar 2009
Posts: 43
Drudoo is on a distinguished road
Default

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
Drudoo is offline   Reply With Quote
 

» Advertisements
» Stats
Members: 175,539
Threads: 94,055
Posts: 402,658
Top Poster: BrianSlick (7,985)
Welcome to our newest member, cecilytw61
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 12:18 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.