TableView loading only the first row of array to all the cells
In my application, i'm using a mutable array to store the images which are picked from the iphone photolibrary by uiimagepicker. That part is working fine and i'm getting the count of the array incrementing each time the image is picked. The problem is that, when loading the array to the tableView, all the cells show the same image, and that too, the first element of the array.
[array addObject:thumbnail];//here array is a mutable one and thumbnail is the image object
count= [array count];//getting array count.(incrementing on each addition), is fine
NSInteger row = [indexPath row];
cell.imageView.image = [array objectAtIndex:row];// here lies the problem??????
Any one knows the issue, pls give the guideline..
Thanks,
|