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 02-01-2009, 09:19 PM   #15 (permalink)
PhillipJames
New Member
 
Join Date: Feb 2009
Posts: 2
Default ok nevermind

I figured it out...

NSArray *myArray= [NSArray arrayWithObjects: @"1111",@"2222",@"3333",@"4444",@"5555",@"6666" , nil];
int chosen = arc4random() % [myArray count];
NSString *item = [myArray objectAtIndex: chosen];
lblText.text = [NSString stringWithFormat: @"%@", item];
PhillipJames is offline   Reply With Quote
 

» Advertisements
» Online Users: 724
20 members and 704 guests
ADY, ckgni, creyon, F_Bryant, GameViewPoint, iphonesdkdevnewbie, JasonR, jneiluj78, joeallenpro, LiquidFire, lmpeejay, mathieuh, MaximT, mer10, Phi, ra0094, Raggou, ric2z, smithdale87, walter_yaron
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,742
Threads: 89,197
Posts: 380,547
Top Poster: BrianSlick (7,129)
Welcome to our newest member, MaximT
Powered by vBadvanced CMPS v3.1.0

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