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

Thread: int question
View Single Post
Old 02-10-2010, 08:42 AM   #8 (permalink)
Mr Jack
Maker of Games
 
Mr Jack's Avatar
 
Join Date: Nov 2009
Location: Coventry, UK
Posts: 395
Mr Jack is on a distinguished road
Default

Quote:
Originally Posted by thavok View Post
as far as the guess count goes I though something like this might work but it doesn't do i need to create another label to display the counter.
I think you want to use stringWithFormat, like this:

Code:
if (num1 == randomNum)
	{
		guessOutput.text = [NSString stringWithFormat: @"You Guessed Right %d", guessCount];
	}
Quote:
and one last question if i add a reset button do I just create an action to reset and pick a new random number like
That sounds about right, yeah.
__________________


Visit Mr Jack Games for my blog and more about my games
Mr Jack is offline   Reply With Quote
 

» Advertisements
» Online Users: 544
13 members and 531 guests
Domele, ganesh.sics, iconomania, ilmman, manop_cs, Matl43Owa, mistergreen2011, Newbie123, Objective Zero, oztemel, PavelSea, pinky, proindigo
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,448
Threads: 94,031
Posts: 402,607
Top Poster: BrianSlick (7,978)
Welcome to our newest member, Matl43Owa
Powered by vBadvanced CMPS v3.1.0

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