PDA

View Full Version : Quiz game help




RobertD63
Apr 13, 2009, 11:34 PM
Okay I'm by no means a programmer. Complete "Noob" to this but I really wanna learn. I downloaded a "template" app of a quiz game. At the end of the game it asks if you want to reset the game but right after that the game wont reset. I looked in the code and I have to write a rest. How would I do this? Its like a "generic" button so I cant use connection manager to connect it to reset the game somehow. Here is a link to the source code so.. Any help for the Noob would be appreciated!
Source code (http://apple-rumors.net/quizgame.zip)
:confused:
Edit: I know some of the questions are wrong haha



BlackWolf
Apr 14, 2009, 09:52 AM
of course it doesn't restart, your code says

if(restartGame==YES)
{
// Create a restart game function.
}


... well, it's kinda obvious this won't work :D
I could tell you how to reset your game, but you should really figure this out on your own. if you can't, then maybe this app is to complex for you right now and you should start off with something more easy.

and btw: what makes you think that you can't use the "connection manager" (I suppose you mean outlets in the interface builder) for generic buttons? you can use outlets for EVERYTHING.