Its a simple thing but i get confused,
I need to display 4 images in the 4 imageviews from the server,button1 - image1,button2 -image2
I used the below code
Both imageviews loaded same image only.ie the last image.Is it possible to use the imageview name as imageview+i?
I need to display 4 images in the 4 imageviews from the server,button1 - image1,button2 -image2
I used the below code
Code:
for(i=1;i<=count;i++)
{
myimage=[[stream objectAtIndex:0] objectForKey:@"Imagelink"];
NSData * imageData = [[NSData alloc] initWithContentsOfURL: [NSURL URLWithString: myimage]];
imageview1.image =[UIImage imageWithData: imageData];
imageview2.image =[UIImage imageWithData: imageData];
}
Both imageviews loaded same image only.ie the last image.Is it possible to use the imageview name as imageview+i?