I need to display array of images in a single view which have various effect in icarousel(time machne,coverflow,etc…)i’m going to use single style where all images have to be displayed..
HERE IS MY CODE IN .M FILE..
UIImage *img=[[UIImageView alloc]initWithFrame:CGRectMake(30, 30, 290, 400)];
NSLog(@"hi");
img.image=[NSArray arrayWithObjects:[UIImage imageNamed:@"Cover_0.png"],
[UIImage imageNamed:@"Cover_1.png"],
[UIImage imageNamed:@"Cover_2.png"],
[UIImage imageNamed:@"Cover_3.png"],
[UIImage imageNamed:@"Cover_4.png"],
[UIImage imageNamed:@"Cover_5.png"],
[UIImage imageNamed:@"Cover_6.png"],
[UIImage imageNamed:@"Cover_7.png"],nil];
But its not working…Can anyone help it out…
Update: As per your latest edit, your question entirely changed, hence my answer does not apply.
Use
animationImagesinstead:From the UIImageView documentation;
An array of UIImage objects to use for an animation.
Availability
Available in iOS 2.0 and later.
See Also
@property image
@property contentMode (UIView)
Declared In
UIImageView.h