I had an UIimageview which animate images and I had a uilabel which describes about the image How to change the label content when we change the image
for (int i=0; i<[mutable_banner count]; i=i+3)
{
NSLog(@"--------%d----------%@",i,[mutable_banner objectAtIndex:i]);
addr = [mutable_banner objectAtIndex:i];
addr = [addr stringByAddingPercentEscapesUsingEncoding:NSASCIIStringEncoding];
data_banner = [NSData dataWithContentsOfURL:[NSURL URLWithString:addr ] ];
img_banner = [[UIImage alloc] initWithData:data_banner];
[images addObject:img_banner];
}
array = [[NSArray alloc] initWithArray:images];
NSLog(@"-array-----%d",[array count]);
imgview_banner = [[UIImageView alloc] initWithFrame:CGRectMake(10, 10,364 ,164)];//364.164
// [imgview_banner setImage:[UIImage imageWithData:data_banner ]];
imgview_banner.animationImages=images;
imgview_banner.animationDuration=30.0f;
[imgview_banner startAnimating ];
[view_banner addSubview:imgview_banner];