I am new to iphone development. I have an Image Array as follows.
NSArray *eyeFrames = [NSArray array];
eyeFrames = [[NSArray alloc] initWithObjects:
[UIImage imageNamed:@"eyes1-open.png"],
[UIImage imageNamed:@"eyes3-half.png"],
[UIImage imageNamed:@"eyes2-empty.png"],
nil];
I have an ImageView as follows
IBOutlet UIImageView *eyesImage;
Now I want to assign this array of Images to my ImageView .
What i tried so far is as follows:
eyesImage.animationImages = eyeFrames;
But it doesn’t seem to provide the expected result.Can anyone tell me how to do it ?
Thanks,
Raj
For animating series of images like image slider following is the code:
For accessing the file from array and set to Image view you have to do like this
Hope this helps…