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 01-27-2010, 07:29 PM   #1 (permalink)
qwertyp
Registered Member
 
Join Date: Jan 2010
Posts: 88
qwertyp is on a distinguished road
Default NSString == INFINITY

I am working on a calculator. When the user performs, say 50^50, the pow() function returns "+(infinity symbol)" with out the ()s. I don't want it to do that, I want to see if the string that shows the positive infinity does, and if so change a UILabel's text to "OverFlow" Here is the (very shortened) code:

Code:
if (answerString == [NSString stringWithFormat:@"+%d", INFINITY]) {
	overflow.textColor = [UIColor blackColor];
}
This if statement never evaluates true. So how do I see if an NSString's value is "+(infinity symbol)"?
qwertyp is offline   Reply With Quote
 

» Advertisements
» Online Users: 473
18 members and 455 guests
AyClass, baja_yu, David-T, djbrooks111, djohnson, Free App Monster, HemiMG, HowEver, iacemomo, ilmman, linkmx, mezzh, schaney1403, simplymuzik3, SLIC, timle8n1, yomo710, yvonneolivia
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,439
Threads: 94,026
Posts: 402,591
Top Poster: BrianSlick (7,978)
Welcome to our newest member, mezzh
Powered by vBadvanced CMPS v3.1.0

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