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-05-2010, 05:44 AM   #57 (permalink)
webphone
Registered Member
 
Join Date: Jan 2010
Posts: 75
webphone is on a distinguished road
Question

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?

Last edited by webphone; 03-05-2010 at 05:46 AM. Reason: miss one question
webphone is offline   Reply With Quote
 

» Advertisements
» Online Users: 769
21 members and 748 guests
baja_yu, ChrisYates, dansparrow, dbramhall, Droverson, Duncan C, eski, flamingliquid, Gaz, gogoman, iconomania, iOS.Lover, ipodphone, jadoo3010, MattPo, mehmood.memon, mraalex, pipposanta, poke, Saurman, taylor202
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,531
Threads: 94,052
Posts: 402,639
Top Poster: BrianSlick (7,979)
Welcome to our newest member, jadoo3010
Powered by vBadvanced CMPS v3.1.0

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