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

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Draw This
($0.99)

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

Pic Frame Dynamo: Photo Editing
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 07-15-2009, 02:11 PM   #12 (permalink)
noobforlife
Registered Member
 
Join Date: Jul 2009
Posts: 23
noobforlife is on a distinguished road
Default

I been trying to accomplish something along the same lines but I only have about 10 images. I also want to have a options menu where I can turn groups of images off. So if the flick the switch of mountians off then no mountains will be generated. Since I only have about 10 image should I go with some more like this:
Code:
NSString *imagePath = [NSString stringWithFormat:@"image%d.png", (arc4random() % 10) + 1];
instead of a array
noobforlife is offline   Reply With Quote
 

» Advertisements
» Stats
Members: 174,548
Threads: 93,727
Posts: 401,265
Top Poster: BrianSlick (7,954)
Welcome to our newest member, rosalvadx91
Powered by vBadvanced CMPS v3.1.0

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