Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

RobertD63

macrumors 6502
Original poster
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
😕
Edit: I know some of the questions are wrong haha
 
of course it doesn't restart, your code says
Code:
		if(restartGame==YES)
		{
			// Create a restart game function.
		}

... well, it's kinda obvious this won't work 😀
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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.