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.
|