i am using a table view and adding small images(cross arrow an accept arrow images) to right side of each cell based on if the option is correct or not....
....Now my table reloaded many times....due to which the images are repeated on every single cell....
i mean if cell_1 has that accept image..after table reload if the value of cell_1 changed and it require cross_arrow image...then both images are visible there...(new one above old one).....
i think it was due to sub view was added to it last time which was not removed..
please tell me how to remove that old image
here is some of my code which adds image to cell...in delegate method of tableView
UIImageView *image =[[UIImageView alloc]initWithFrame:CGRectMake(260,5,40,40)];
if(correct)
[image setImage:[UIImage imageNamed:@"right.png"]];
else
[image setImage:[UIImage imageNamed:@"wrong.png"]];
image.autoresizingMask;
image setBackgroundColor:[UIColor clearColor]];
[cell addSubview:jimage];
[jobStatus release];
please note i have to use only my images and not table's accessory types..
and there are no fixed numbers of rows in my table view (created at runtime).
therefore i also cannot use a class imageView.
please help