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-08-2009, 01:22 PM   #3 (permalink)
Samalope
New Member
 
Join Date: Jul 2009
Posts: 10
Samalope is on a distinguished road
Smile Select Random Picture Within Array

Quote:
Originally Posted by smasher View Post
I did not look at your code, but It sounds like you're using a UIImageView and setting the animationImages property. If you set myView.animationImages = nil then you can set myView.image = anImage. That will display the single image "anImage".

300 images is a lot, probably too many to load into memory at the same time. Instead, you should probably keep an NSArray of image *filenames* , and when you pick your random number, take that filename and load the image.


could you give me an example of what an NSArray of image *filenames* would look like? And would I use the arc4random() function with that?


I really appreciate your help! Thank You!
Samalope is offline   Reply With Quote
 

» Advertisements
» Online Users: 601
22 members and 579 guests
Alexj17, baja_yu, chenpo, dapis, Dogtown, Domele, givensur, GVD, hemcii, jerrywenwu, LooN3y, mediaspree, michaelhansen, nanijoe, Newbie123, Rudy, sanlows, Shiroboi, smith288, soydesu, yuonneru49
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 174,544
Threads: 93,725
Posts: 401,261
Top Poster: BrianSlick (7,954)
Welcome to our newest member, soydesu
Powered by vBadvanced CMPS v3.1.0

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