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-16-2009, 06:57 PM   #1 (permalink)
paris
Registered Member
 
Join Date: Jul 2009
Posts: 3
paris is on a distinguished road
Default Using NSArray as an array of images and load one at a time.

I have an NSArray that loads 30 images when the viewloads up.

I have a UIImageView that can display only one of these images at a given time.

The user clicks on a button to see the next image.

On each click I am doing this :
--
UIImage *img = [imageArray objectAtIndex:current_img_number];
[img_view setImage:img];
--

However the app crashes on every click.

Can anyone help me please?

Thanks,
Paris.
paris is offline   Reply With Quote
 

» Advertisements
» Online Users: 572
13 members and 559 guests
AppleDev, blanix, blasterbr, Domele, G-Power, GarryTheGarlic, ITCreative, mediaspree, ncc1701e, nt.hai, OgreSwamp, Penicillin, tranvutuan
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 174,548
Threads: 93,727
Posts: 401,266
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 10:18 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.