Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 08-11-2009, 10:38 AM   #20 (permalink)
DenVog
Registered Member
 
DenVog's Avatar
 
Join Date: Jan 2009
Location: Silicon Valley, USA
Posts: 622
Default

Quote:
Originally Posted by scburns123 View Post
If the text displays randomly, will the iPhone still remember what was previously displayed or will it just create a new random text string from the array?
If you take a look at post #5 in this thread, Smasher added some code to keep track of the last thing selected. It is for the purpose of not displaying the same response twice in a row, but you should be able to leverage it for your purposes.

Code:
//save the value for the next function call
	lastChosen=chosen;
DenVog is offline   Reply With Quote
 

» Advertisements
» Online Users: 359
21 members and 338 guests
ADY, bobli, Dani77, Duncan C, HDshot, HemiMG, ilmman, leahov, MarcoAlmeida, Meoz, ngaikwad, Punkjumper, Raffaello, Robiwan, Rudy, skrew88, themathminister, timle8n1, wilky94
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,877
Threads: 89,222
Posts: 380,727
Top Poster: BrianSlick (7,129)
Welcome to our newest member, peterkessler45
Powered by vBadvanced CMPS v3.1.0

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