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 12-31-2009, 07:50 PM   #10 (permalink)
Ins3rtNam3H3r3
Registered Member
 
Join Date: Jun 2009
Location: Fort Lauderdale, Florida
Posts: 67
Ins3rtNam3H3r3 is an unknown quantity at this point
Default

Quote:
Originally Posted by wilky94 View Post
i dont understand what you mean could you send me the code i am a nube to iphone development
I mean you should do:
Code:
if (question.text isEqualToString:@"What was the first programmable computer called?") {
		
        NSLog(@"IF statement true"); 

	score.text = [NSString stringWithFormat:@"%i", ([score.text intValue] - 1)];	
	
	result.text = @"Incorrect";
}
to check if the IF is true, and if its not you should do:
Code:
NSLog(question.text);

if (question.text isEqualToString:@"What was the first programmable computer called?") {

	score.text = [NSString stringWithFormat:@"%i", ([score.text intValue] - 1)];	
	
	result.text = @"Incorrect";
}
to see what question.text is and why it's not evaluating to true.
__________________


FREE 3D Photo Maker
Ins3rtNam3H3r3 is offline   Reply With Quote
 

» Advertisements
» Online Users: 645
18 members and 627 guests
ADY, baja_yu, David-T, dcool, Duncan C, esoteric, gmarro, iAppDeveloper, jstonebrook, krisk, mer10, mraalex, mtl_tech_guy, pipposanta, renesteg, Sami Gh, Steve Shanks, Xaphann
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,422
Threads: 94,019
Posts: 402,546
Top Poster: BrianSlick (7,978)
Welcome to our newest member, iAppDeveloper
Powered by vBadvanced CMPS v3.1.0

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